login
Forgot?
Login with Facebook

Don't have an account? Register one now!

SQL Query Help

Bids 
2
Avg Bid
$30 USD
CLOSED
  • Project ID:

    487741
  • Project Type:

    Fixed
  • Budget:

    $30-$250 USD

Project Description:

I am populating a radiobuttonlist control for a conference registration. The client has now asked that a max number criteria be added. (so it is either disabled or delisted from the radiobuttonlist control once a max number for each session is reached).

Currently, I am building the control using the query:
SELECT '<a href=javascript:Start(''popup.aspx?SessionID=' + CAST(Sessions.ID AS NVARCHAR) + ''')>' + Sessions.SessionTitle + '</a> - <font color=' + Themes.color + '>' + Themes.Title + '</font>' AS SessionName, Sessions.ID, Sessions.Block
FROM Sessions INNER JOIN Themes ON Sessions.Theme = Themes.ID INNER JOIN SessionBlocks ON Sessions.Block = SessionBlocks.ID WHERE (Sessions.Block = 2) ORDER BY Sessions.Block, Title,SessionName

- the sessionname above is just me making it a hyperling to a popup details page.

at this point, the tables as used above are:

Sessions
Themes
SessionBlocks

New to the database is now a table called Rooms which has a primary key of RoomNumber and is a foreign key in the Sessions table field called Room. Rooms.Capacity has the max number of registrants allowed.

The field to count for each record is in a table called 00_MainRegistration the Sessions.ID is stored in a field such as FridayAM.

Basically, it would have to count the number of times that the Sessions.ID is in the FridayAM field and compare it to the Rooms.Capacity figure.

Hope that makes sense but can clarify further if needed.

Skills required:

.NET, SQL

Project posted by:

Penhall Canada
(4 Reviews)

Last seen:

If you are the project creator or one of the bidders, please Log In for more options.


Awarded Bids

cyberiarob United States
cyberiarob
United States From United States     Offline
 Accepted
$30 in 1 day 
0
over 2 years ago
5.0

1.0

1 Review
100% Completion Rate
I would have absolutely no problem providing the query that you need. I have a lot of experience writing very complex SQL queries. I am in the Central time zone, so the minimal time difference would enable any necessa... more
I would have absolutely no problem providing the query that you need. I have a lot of experience writing very complex SQL queries. I am in the Central time zone, so the minimal time difference would enable any necessary real-time communication. I look forward to working with you on this project. less

All Bids ()

brittogladez United States
brittogladez
United States From United States     Offline
$30 in 1 day 
0
over 2 years ago
5.0

1.2

1 Review
100% Completion Rate
Please Read PM