Group Information- Members: 3212
- Category: SQL
- Founded: Feb 17, 2003
- Language: English
|
Upcoming calendar upgrade: Yahoo! Groups calendars are being upgraded to a much improved version. You may not have access to the calendar (for up to 24 hours) when this group is upgraded. We sincerely apologize for this inconvenience.
Description
SQL Queries Advice for any programming language
NOT NOT NOT an ASP.net group go to [AspNetAnyQuestionIsOk] if you have ASP.net questions
This list is to discuss primarily the SQL Query you are activating in your code including easy, medium, hard SQL Queries:
- "Select ..."
- "Insert Into"
- "Delete ..."
- "Update ...."
- joins, Actions, DDL, Aggregate, Multi-Table, Cubes, OLAP, etc.
and is NOT NOT NOT really about debugging or including the ASP, ASP.net, ColdFusion, VB, C# or whatever code that calls ro consumes that query.
GENERALLY we want to see the SQL statement only, not all the surrounding programming code since we don't want to become a code-debugging lists - there are plenty of those.
To paraphrase Joe Friday from Dragnet "Just the SQL Please"
If possible we don't talk about Stored Procedures or Packages because they are DBMS specific (SQLserver and Oracle respectively) but if they are the most efficient way to get results we will discuss them.
We are not really an Oracle, SQLserver or Informix, etc. specific support list so as questions drift from SQLqueries into issues peculiar to only those specific database platforms, we suggest those questions occur on DBMS specific lists not these.
|
Re: DateTime conversion
Thanks Paul, Since this query has to be run for just for value at a time..inside a udf, your solution is pretty much accepted. Â Best Wishes, Noman Aftab Â
Posted - Mon May 14, 2012 6:35 pm
|
Noman Aftab
noman17pk
Offline Send Email
|
Re: DateTime conversion
because you are not everything in the column is not a date and your date format is not a SQL Standard you will need to test for a DATE and convert using
Posted - Mon May 14, 2012 4:56 pm
|
Paul Livengood
p_livengood
Offline Send Email
|
DateTime conversion
Hi, I have a varchar column which contains a formatted datetime in 'yyyyMMddHHmm' format. For e.g. '201205142050' represents 14 May 2012 08:50 PM This column
Posted - Mon May 14, 2012 4:42 pm
|
Noman Aftab
noman17pk
Offline Send Email
|
Re: CASE - ISNULL - What Am I Missing?
Coalesce is ansi standard whereas isnull is t-sql and could go away in the future. Mark Sent from Yahoo! Mail on Android From: John Warner ; To: ; Subject: RE:
Posted - Sat May 12, 2012 2:09 pm
|
Mark E
meckeard2000
Offline Send Email
|
Re: CASE - ISNULL - What Am I Missing?
I can't speak for all nor for the OP but null can cause procedural code to have an issue, null isn't a string or char array and thus will need conversion.
Posted - Sat May 12, 2012 9:44 am
|
John Warner
john@...
Send Email
|
Add SQLQueriesNoCode to your personalized My Yahoo! page What's This?
|
Message History
|
|
Post message:
SQLQueriesNoCode@yahoogroups.com
Subscribe:
SQLQueriesNoCode-subscribe@yahoogroups.com
Unsubscribe:
SQLQueriesNoCode-unsubscribe@yahoogroups.com
List owner:
SQLQueriesNoCode-owner@yahoogroups.com
|