Simple SQL problem, disambiguating common attributes -


I have a database with the table person , with the attribute id , names and age . I have a table worksfor , with attributes ID1 and ID2 , where ID1 works for ID2

I want to list the names of all those who work for at least 2 years younger than anyone. How do i do this

ID 1 Works ID2 ... Select CubeRat.ID, CubeRat.Name, CubeRat.AgroupForFormsFor W. INNER W.ID2 = Add Boss.ID Individual Owner at INNER WIID1 = CubeRat.ID is included in CubeRat where WHERE Cubarate.exe> = (Boss.ge + 2)

Comments

Popular posts from this blog

mysql - BLOB/TEXT column 'value' used in key specification without a key length -

c# - Using Vici cool Storage with monodroid -

python - referencing a variable in another function? -