Can SQL combine tables like these? Doubtful

I have two tables that look like these:

I would like to create a new table that combines these tables and looks like this:

Can SQL combine tables like these? If so, how?

    Requires Free Membership to View

IT Knowledge Exchange author Denny Cherry responds: There is no reliable way of joining these values because they don't relate to each other. You could, I suppose, join them based on row numbers, but if the rows change order, the joined rows would be different, so that would be very unreliable. The tables need to be redesigned with some sort of relationship between the values.

This was first published in December 2013

There are Comments. Add yours.

TIP: Want to include a code block in your comment? Use <pre> or <code> tags around the desired text. Ex: <code>insert code</code>

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
Sort by: OldestNewest

Forgot Password?

No problem! Submit your e-mail address below. We'll send you an email containing your password.

Your password has been sent to: