Viewing 13 posts - 1 through 14 (of 14 total)
I apologize for posting the wrong way, I was in a hurry and did not go through the best practices. Anyway, the issue is solved now, used a couple of...
October 8, 2012 at 6:09 am
Sean Lange (10/5/2012)
select A, b, MAX(C), MAX(D), MAX(E), MAX(F), g
from
(
SELECT distinct
BASE1.AssetID AS a
,BASE1.Name As b
,case...
October 5, 2012 at 8:45 am
Its a pretty big query but here it is:
SELECT distinct
BASE1.AssetID AS a
,BASE1.Name As b
,case when BASE2.AssetID like 'AST%' then 'Asset Records' else ''...
October 5, 2012 at 6:52 am
Sorry, I may have mislead you.
The values under Relationship is taken from 2 tables.
Table1 -> AssetID, AssetName
Table2 -> Relationship1
Table3 -> Relationship2
Table4 -> Company
Hence for each record I am getting duplicate...
October 5, 2012 at 6:41 am
Mark-101232 (10/5/2012)
Try this
SELECT AssetID, AssetName, MAX(Relationship) AS Relationship, MAX(Company) AS Company
FROM myTable
GROUP BY AssetID, AssetName
Thanks Mark, but the problem is "Relationship" and "Company" columns are from different tables. Hence using...
October 5, 2012 at 6:19 am
drew.allen (3/30/2012)
April 6, 2012 at 5:21 am
Even if I try dynamic cross tab, I would still be stuck since I wouldnt be able to do a 'Group By' on it.
And the result : Student...
March 30, 2012 at 7:26 am
Sorry for the late reply guys. was busy with something else.
Anyway thanks for helping me out.
But this is the problem.
It should include day light saving timings. Here is an example
1162101599...
April 14, 2011 at 1:04 am
GilaMonster (4/1/2011)
prady_1988 (4/1/2011)
April 1, 2011 at 5:35 am
Yes i could restore a backup with DB prior to Jan 1st 2009, but i would need another DB containing only the records which were added after Jan 1st 2009....
April 1, 2011 at 2:40 am
Thanks for the fast reply
always thought there would be some built-in timestamps for records inserted. is there any workaround for this?
March 31, 2011 at 6:54 am
Hi Sean,
This is the result i was looking for but the actual required result is 5 hours behind GMT and daylight saving times are to be considered.
Would that...
March 2, 2011 at 7:50 am
Thanks guys. It was in fact an extended stored procedure. Found it
February 28, 2011 at 12:14 am
Viewing 13 posts - 1 through 14 (of 14 total)