Viewing 13 posts - 31 through 43 (of 43 total)
elee1969 (7/17/2013)
Not sure if i am doing this correct but i get an error as i followed your advice. I attached a screenshot.
i figured it out. I forgot to...
July 17, 2013 at 9:01 am
Not sure if i am doing this correct but i get an error as i followed your advice. I attached a screenshot.
July 17, 2013 at 8:59 am
sdevanny (7/17/2013)
July 17, 2013 at 8:48 am
Luis Cazares (7/3/2013)
You can use a CASE statement.
SELECT q.Course_Code, CASE WHEN res.[4a] = 0 THEN 0 ELSE 6-res.[4a] END as [4a],
...
ah thanks luis. 🙂 i knew it would be the...
July 3, 2013 at 2:44 pm
elee1969 (7/3/2013)
Eugene Elutin (7/3/2013)
like this:
SELECT q.Course_Code, 6-res.[4a] as [4a],6-res.[4b] as [4b], 6-res.[4c] as [4c], 6-res.[5a] as ,res.[5b],res.[5c],res.[6a],res.[6b],res.[6c],res.[7a],res.[7b],res.[7c],res.[7d],res.[7e] as converted
FROM
The above willnot compile as has quite few errors. You should be...
July 3, 2013 at 10:53 am
Eugene Elutin (7/3/2013)
like this:
SELECT q.Course_Code, 6-res.[4a] as [4a],6-res.[4b] as [4b], 6-res.[4c] as [4c], 6-res.[5a] as ,res.[5b],res.[5c],res.[6a],res.[6b],res.[6c],res.[7a],res.[7b],res.[7c],res.[7d],res.[7e] as converted
FROM
The above willnot compile as has quite few errors. You should be more...
July 3, 2013 at 10:33 am
Eugene Elutin (7/3/2013)
just replace first line of your SELECT query to:SELECT q.Course_Code, 6-res.[4a] as [4a], 6-res.[4b] as [4b], 6-res.[4c] as [4c], 6-res.[5a] as [5a] ... etc.
like this:
SELECT q.Course_Code, 6-res.[4a] as...
July 3, 2013 at 9:57 am
Eugene Elutin (7/3/2013)
6 - X formula will work for you:
SELECT v, 6-v as converted_v
FROM (VALUES (1),(2),(3),(4),(5)) v(v)
Eugene - not sure how i would add this to the query....
July 3, 2013 at 9:28 am
Eugene Elutin (7/3/2013)
elee1969 (7/3/2013)
July 3, 2013 at 9:22 am
I just ordered my books so waiting on them to get in but would be interested.
June 27, 2013 at 8:07 am
Viewing 13 posts - 31 through 43 (of 43 total)