sql - Query not working1 -


hey trying select data 3 different tables based on data found. it's not working. trying display selected in grid-view. ideas?

 select bossid, status, couponnumber, fk_prizeid, fk_winnerid   bountyprizes   union    select prizename prizes prizeid=fk_prizeid    union    select firstname, lastname, dob players playerid=fk_winnerid 

error: msg 207, level 16, state 1, line 6 invalid column name 'fk_prizeid'. msg 207, level 16, state 1, line 8 invalid column name 'fk_winnerid'.

joins want take more other tables. unions want take 2 congruent tables , show combined result

here code need:

select bossid, status, couponnumber, fk_prizeid, fk_winnerid  bountyprizes   join prizes on prizeid=fk_prizeid   join players on playerid=fk_winnerid 

Comments

Popular posts from this blog

css - Which browser returns the correct result for getBoundingClientRect of an SVG element? -

gcc - Calling fftR4() in c from assembly -

Function that returns a formatted array in VBA -