Click here to Skip to main content
Page 1 of 593
Page Size: 10 · 25 · 50


Tag filtered by:  SQL-Server [x]
Answer 13 May 2013   license: CPOL
You need to either understand PIVOT / UNPIVOThttp://msdn.microsoft.com/en-us/library/ms177410(v=sql.105).aspx[^]orCreate two select statements and use them as derived tables. Then you can join on ID and get your output.i.e.Select a.Id, a.Time InTime, b.Time...
Question 13 May 2013   license: CPOL
Hi friends when convert ms access database into sql server database using sqlserver importdata the following error is occured. The Workgroup information file is missing or opened exclusively by another user.but i did not open MsAccess file any where in the system while...
Article 13 May 2013   license: CPOL
View and rate box art for your favorite Xbox games!
Question 13 May 2013   license: CPOL
I have one column named as Time with another column named as ID.I want to divide the column Time in two different columns as InTime & OutTime.But the important thing is that if the count of that ID present in a ID column is even, the corresponding value present at that ID of column Time...
Article 13 May 2013   license: CPOL
SQL Server 2000, 2005, 2008, 2008 R2, 2012 Character String Data Types and Functions with Sample SQL Statements. Quick reference, Data Type Tables, Function Tables
Article 13 May 2013   license: CPOL
Example of Application with GitHub, SQL-CE, EF and SQL-Azure integration with Azure WebSites
Answer 13 May 2013   license: CPOL
Hi,Try this...SELECT distinct r.rate as Rate,f.bthid as Batchid,CASE WHEN r.rate = '1' THEN '100' WHEN r.rate = '2' THEN '75' WHEN r.rate = '3' THEN '50' WHEN r.rate = '4' THEN '25' ELSE '0' END AS Translated_Rate FROM bthfac fINNER JOIN faculty fa ON...
Question 13 May 2013   license: CPOL
Faculty table records as follows:- Facid Faculty 1 MADHAVAN 2 Sekar 3 John 4 vinoth 5 Ramesh Batch table records as follows Bthid Examdate 1 14/9/2011 2 24/10/2011 3 9/12/2011 4...
Answer 13 May 2013   license: CPOL
Hi,Check the following CodeSELECT GETDATE()GO-- SQL Server 2000/2005SELECT CONVERT(VARCHAR(8),GETDATE(),108) AS HourMinuteSecond,CONVERT(VARCHAR(10),GETDATE(),101) AS DateOnly;GO-- SQL Server 2008 OnwardsSELECT CONVERT(TIME,GETDATE()) AS HourMinuteSeconds;SELECT...
Answer 13 May 2013   license: CPOL
Here, SQL SERVER – Get Time in Hour:Minute Format from a Datetime – Get Date Part Only from Datetime[^]
Question 13 May 2013   license: CPOL
I have a column which has date-time,i want to convert that into hours and minutes/minutes only,any sql statement that can help me?(NB still a learner)
Answer 13 May 2013   license: CPOL
select CAST(DATEDIFF(dd,'2013-04-16 05:00:00' , '2013-04-19 20:00:10') as varchar) +':'+convert(char(5), dateadd(ss, DATEDIFF(ss,'2013-04-16 05:00:00' , '2013-04-16 20:00:10'), cast(0 as DateTime)) , 108)
Answer 13 May 2013   license: CPOL
Try this:ALTER PROCEDURE sp_ArchiveTable1( @StartDate datetime, @EndDate datetime, @DateColumn VARCHAR(100), @TableName VARCHAR(100), @NewTableName VARCHAR(100))ASBEGIN DECLARE @NextIDs TABLE(UniqueID int primary key) DECLARE @statement nchar(1000) = N'SELECT * INTO...
Answer 12 May 2013   license: CPOL
Please, see this article: Building Dynamic SQL In a Stored Procedure[^]
Answer 12 May 2013   license: CPOL
I think you have to use exec(here your query) command for this to get executed.Hope this helps...
Question 12 May 2013   license: CPOL
Currently I have started creating a procedure, which gets the parameters and should copy the contents of one table to another with certain conditions. I have copied the codes here. It compiles good. But nothing is affected.ALTER PROCEDURE sp_ArchiveTable1(@StartDate datetime,@EndDate...
Question 12 May 2013   license: CPOL
Hi friends I have tried to convert ms access database to sql database.but i could not able to done it successfully. the below methods are i have been using so for1.from sql server 2008 i created a empty database and try to import data from task but it shows cannot start your...
Answer 12 May 2013   license: CPOL
Try this:SELECT DISTINCT *FROM Tmp Tmp inner JOIN MARKET_PLACE_DESIGN_RELATION MPDR ON MPDR.MARKET_PLACE_DESIGN=Tmp.MarketDesignhttp://www.w3schools.com/sql/sql_distinct.asp[^]
Question 12 May 2013   license: CPOL
i have a table market_place_design which has different market places and designs.1 design exists in different market places.I have another table temp which has only column design filled in it.Now after joining the tables i am getting multiple data for a single design whereas i need only 1...
Question 12 May 2013   license: CPOL
how to i use BETWEEN in sql server for the column with varchar datatype?please help...i want to select the rows between the row which has column saysomething with value "Hello" and another row which has value "lol" for the same column..
Answer 12 May 2013   license: CPOL
Declare @Seconds as intDeclare @SubtractDate as datetime--Enter Number of Seconds hereSet @Seconds=9974501Set @SubtractDate=DateAdd(s,@Seconds,getdate()) - Getdate() Select Convert(varchar(10),DateDiff(day,'1900-01-01',@SubtractDate))+ ' Day(s) '...
Question 12 May 2013   license: CPOL
Following Query returns me Number difference in format of "HH:MM:SS"select convert(char(8), dateadd(ss, DATEDIFF(ss,'2013-04-16 05:00:00' , '2013-04-16 20:00:10'), cast(0 as DateTime)) , 108)output of above query is " 15:00:10 " which is correct but if i change query as below...
Answer 12 May 2013   license: CPOL
Read the following : http://databases.aspfaq.com/general/why-do-some-sql-strings-have-an-n-prefix.html[^]

Page 1 of 593
1 2 3 4 5 6 7 8 9 10


Advertise | Privacy | Mobile
Web04 | 2.6.130513.1 | Last Updated 13 May 2013
Copyright © CodeProject, 1999-2013
All Rights Reserved. Terms of Use
Layout: fixed | fluid