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 TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

SQL help

Status
Not open for further replies.

tmcneil

Technical User
Nov 17, 2000
294
US
Hi All,

I've got three oracle tables:

TRAIN_STATIONS
Fields: ABBRV, NAME
Description: contains train station records

STATION_GROUPS
Fields: ID, NAME
Description: contains group name records.

STATION_GROUPS_J
Fields: GROUP_ID, ABBRV
Description: a table containing the train station records associated with each station group. If there is a group1 with a group_id of 1, then you might have 4 train station records in the table associated with the group_id of 1.

Hopefully, we are all on the same page. I have one asp page built with a table at the top that displays the group names. Halfway down that same page, I have two folder tabs, one for the group info and the second for the stations. These are separated on the page using the <div> html tag. The Group Info tab contains a text box that you can use to add, update or delete group names from the groups table.

The second tab, Stations, contains a table like the group table at the top of the page, populated with all of the records from the train_stations table. This might include a select all and unselect all command buttons. Each record has a checkbox beside it and what I would like to do is be able to have those check boxes turned on next to the records that are included in the group selected from the group table above. I would like to add stations or remove stations from a selected group or create a brand new set of selected stations for a new group.

Any help on this problem would be greatly appreciated,

Todd
 
HUH?

Don't think you can write an Oracle SQL statement that can "have check boxes turned on next to the records that are included in the group selected" in an asp page.


----------------------------------------------------------------------------
The person who says it can't be done should not interrupt the person doing it. -- Chinese proverb
 
There must be a SQL statement that can be written to produce a record set that you can create a vbscript statement to check for a null value. If it's null, then it's checked. Something of that nature.

Todd
 
Research the nvl function, it is used to convert null values to whatever value you declare.
So, maybe you can turn the nulls to a 0 or 1 which is read as checked or unchecked.

Just a thought



Heydyrtt
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top