Viewing 15 posts - 7,366 through 7,380 (of 15,381 total)
ChrisM@Work (7/29/2013)
Sean, there are more details here.
I don't know that I would call that details but that certainly shows this is a duplicate thread.
July 29, 2013 at 7:52 am
Pretty sparse on the details but maybe something like this?
select Name, Order, max(ItemShipDateTime)
from SomeTable
group by Name, Order
If that isn't what you are looking for we will need a few things:
1....
July 29, 2013 at 7:37 am
pwalter83 (7/29/2013)
Could someone please tell how can data be updated (refreshed) in one table if the data is refreshed on another table and both tables are linked through a primary...
July 29, 2013 at 7:32 am
kanchan 58240 (7/29/2013)
Thanks for all your replies. Here is the query worked as required.
select t.cardno ,dateadd(dd, -datediff(dd, t.datetime1, 1), 1) AS date,
(select SUBSTRING(CONVERT(varchar, min(st.datetime1), 100), 13, 2) + ':'...
July 29, 2013 at 7:20 am
dubem1-878067 (7/26/2013)
I have a table with 12 'bit columns' each of them reprensent a potential specific...
July 26, 2013 at 12:36 pm
Total shot in the dark because there is nothing to work and the description is very vague but maybe you want something like this?
CREATE FUNCTION dbo.Example_function_name
(
...
July 26, 2013 at 12:34 pm
SQL_Surfer (7/26/2013)
I wanted to make level andy Myvalue as a paramter. Can that be done?
Not exactly sure what "level andy Myvalue" is but you can add parameters to your function,...
July 26, 2013 at 12:30 pm
nitha jen (7/26/2013)
July 26, 2013 at 8:07 am
Luis Cazares (7/26/2013)
The problem with MIN(DateFoBirth) is that is getting the oldest person, not the youngest. :hehe:
ROFL. Between all of us maybe we can put together a simple query that...
July 26, 2013 at 7:57 am
Your code seems to have some concurrency issues. You are using IDENT_CURRENT to determine which value to get for a DepartureDate. How can you know that nobody else has inserted...
July 26, 2013 at 7:54 am
nitha jen (7/26/2013)
student_id,name,age,marks
in my usp_student_details procedure i have 2 parameters as a i/p like @columns,@values
my i/p format is
exec student_details @columns='name,age,marks',@values='a,22,85'
here...
July 26, 2013 at 7:36 am
Eric M Russell (7/25/2013)
Luis Cazares (7/25/2013)
How about this?
SELECT TOP 1 *
FROM MyTable
ORDER BY DateOfBirth DESC
We also can't assume that DateOfBirth isn't nullable.
SELECT TOP 1 *
FROM MyTable
WHERE DateOfBirth is not null
ORDER...
July 26, 2013 at 7:29 am
Or you could make this a bit simpler by eliminating the unnecessary subselect.
select cardno
, MIN(datetime1) AS MINdatetime1
, MAX(datetime1) AS maxdatetime1
,[action]
from view1
GROUP BY cardno, [ACTION]
July 26, 2013 at 7:25 am
Please read this article and think about how it pertains to what you have posted here.
http://weblogs.sqlteam.com/jeffs/archive/2008/05/13/question-needed-not-answer.aspx
July 25, 2013 at 3:19 pm
Zeal-DBA (7/25/2013)
please find attached image , as i have written trigger, after executing it prints message what i have mentioned in code but it is allowing to insert record...
July 25, 2013 at 3:17 pm
Viewing 15 posts - 7,366 through 7,380 (of 15,381 total)