Hi All, Hoping someone can help me with this.
SELECT TOP 10 header."uid"
FROM sp50devel."dbo"."header" WHERE header."plx_name" LIKE '(SELECT TOP 1 header."plx_name" FROM sp50devel."dbo"."header" ORDER BY header."date_time" DESC)' ORDER BY header."date_time" DESC
header."plx_name" is text
header."uix" is int
If I run the nested SELECT, I get a return of IT-E03184A
If I replace the nested query portion with 'IT-E03184A' then I get the top 10 corresponding header."uid"s
If I run the query as posted, I get a return of NOTHING, NULL...
Can someone help me with this one. I've never worked with nested query's and i'm about to pull my last hair out..
Thanks!
Ben
SELECT TOP 10 header."uid"
FROM sp50devel."dbo"."header" WHERE header."plx_name" LIKE '(SELECT TOP 1 header."plx_name" FROM sp50devel."dbo"."header" ORDER BY header."date_time" DESC)' ORDER BY header."date_time" DESC
header."plx_name" is text
header."uix" is int
If I run the nested SELECT, I get a return of IT-E03184A
If I replace the nested query portion with 'IT-E03184A' then I get the top 10 corresponding header."uid"s
If I run the query as posted, I get a return of NOTHING, NULL...
Can someone help me with this one. I've never worked with nested query's and i'm about to pull my last hair out..
Thanks!
Ben