Hello All,
I have a menu in which items within it should display depending on the role assigned. In the code below all roles should see the "Forms" option, and then, depending on the role, they should see "Admission", "Service", "Treatment", or "Discharge", only the Administrator should see ALL...
Hi All,
We have installed Sql Server 2005 with a 5 CAL user licenses (we are a relatively small company). We are developing a website that will allow users to query one of our databases. The website uses in it's connection string only one User Name that was specifically created in SQL Server...
Here is an idea of how to do it, every query could be run as a sub query of the next one, but I kind of wanted you to see what is going on on the process.
Hope this helps
SELECT id AS Last_ID,
MAX (record_date) AS Last_Date
INTO #TEMPO
FROM Your_Table
GROUP...
Hi experts :)
I'm creating a little website to train our employees, it goes a little like this:
- Employee logs in (Done)
- A list of available presentations is shown (Done)
- Employee selects presentation and goes through it (Done)
- Employee takes a test and gets scored (Partly Done...
Hi all,
I've been requested to develop an intranet training web site in which the employees:
Step 1.- Log into main page and get a list of training videos
they have access to. (Done)
Step 2.- Choose video, play to completion, print certificate.
(Incomplete)
Step 3.- Update...
Hi all,
I have a little site that generates reports (using Crystal) and displays the results in either pdf format or excel format (2003).
For excel I use the next code:
Response.ClearContent()
Response.ClearHeaders()
Response.ContentType ="application/vnd.ms-excel"...
Hello,
your select will return a table with an x number or rows for EAR_LOB and Controller, you are trying to create a function that returns a single varchar(10) value. Please explain a little more of what you are trying to do.
Hi,
you can try:
INSERT INTO Your_Second_Table
SELECT ConNum,
Year1,
1
FROM Your_First_Table
WHERE Value > 0
UNION ALL
SELECT ConNum,
Year2,
2
FROM Your_First_Table
WHERE Value > 0
:
:
:
-- For All The Different Years
Hope this helps
My method is basically the same as vongrunt's, I just left a bunch of columns so you could see the logic behind it, if you select distinct trackid then it should just give you track 2 and 3
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.