Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Adding empty row in result set?

Status
Not open for further replies.

Sleidia

Technical User
May 4, 2001
1,284
FR
Hi guys :)

In a select query, what do I add in order to add an empty row either at the very top or at the very bottom of the result table even if the result set is empty?

Thanks!
 
Code:
select ...
   [i]your query here, without the ORDER BY[/i]
union all
select null, null, ... [i]one per column in your select[/i]
order by [i]your ORDER BY[/i]
:)

r937.com | rudy.ca
 
Wow thanks!
To my credit, I was very close to the solution ahaha ;)
 
Hello again Rudy,

I've noticed that the extra row doesn't show when the table is empty :(

Is there a way to show the extra empty row even when the table is empty?

Thanks!

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top