Advertisement

1 - 10 of 20 containing alltags:("datename") (0 seconds)
Is it possible, i am sure it is. that i can us a combination of a getdate and datename within a query to be able to achaive a where command? say that i have a query like this Select col1, co...
Zones: MS SQL ServerDate Answered: 06/01/2004 Grade: A Views: 0
Why is DateName showing all January when I know it's not.  If I remove DateName, I get numbers for each month like 1,4,2,5 which should be converted to varying month names but they're all coming ou...
Zones: MS SQL ServerDate Answered: 05/22/2006 Grade: A Views: 0
part of a query i have is attempting to display a subscribers expiration ... that is the last issue, like: "May-06" the rule is that if their expiration date is the 1st through the 14th, then th...
Zones: MS SQL ServerDate Answered: 10/04/2006 Grade: A Views: 0
I am using datepart in my VB.net code which is returning a month number.  How to I get that to a name?
Zones: .NET, Visual BasicDate Answered: 06/27/2007 Grade: A Views: 4
Hello Experts, The following Select statement returns the day of the week. Does anyone know how to just return the first 2 characters of the weekday? SELECT DISTINCT VisitDate, DATENAME(dw, V...
Zones: SQL Server 2005, Databases, MS...Date Answered: 07/29/2007 Grade: A Views: 9
Using Sybase ASE 12.5.4 and I need to parse a datetime entry into a date and time column separately, separately.  I am currently using the datename function to build a string for each column, as se...
Zones: Databases, SybaseDate Answered: 07/30/2007 Grade: A Views: 0
I am trying to write a report for our end user that counts the number of application types submitted by week and groups them by month. It would be something like: January                  Agent...
Zones: MS SQL ServerDate Answered: 08/19/2005 Grade: A Views: 0
SELECT datename(yyyy, orders_AuthDate) AS X,       ISNULL(SUM(orders_Subtotal + shipping_Cost - discount_Amount),0) AS Y1,       ISNULL(COUNT(orders_Id),0) AS Y2                   FROM tbl_Orders WHERE orders_AuthDate ...
Zones: MS SQL ServerDate Answered: 10/14/2004 Grade: A Views: 0
The following query counts from a temporary table, and then displays the results grouped by month.  The problem is that January 07 is now appearing before December 06 in the results, which isn't qu...
Zones: MS SQL ServerDate Answered: 01/02/2007 Grade: A Views: 0
Hi all How to get date like 01/01/2001 bellow attdate will store in by database like this attdate = '2000-09-26 00:00:00.000' select distinct month = DATENAME(mm,attdate), attdate = DATEPA...
Zones: MS SQL ServerDate Answered: 08/02/2001 Grade: A Views: 0