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!

SQL select statement 1

Status
Not open for further replies.

Scrabble

MIS
Jan 4, 2002
11
US
I have this query.

Select
1 "Topbottomflag"
a."row"
......

How can Get the 1 "TopbottomFlag" to stay in the SQL statement. After i edit the Show Sql and run the report the 1 "Topbottomflag" disappears. Is there any way that I can get this to stay. Or put it somewhere else. Also I need the 1 I believe because I'm going to have to UNION with it and put a 2 "TopbottomFlag"

Thanks
 
Create a SQL Expression to handle the first select identifier of:

1 as Topbottomflag

The SQL you place AFTER the Union can have anything you'd like, but watch for where Crystal places the Topbottomflag SQL Expression within the CR built select so you match columns.

-k kai@informeddatadecisions.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top