Import excel data in sql 2013
Hi,Can anybody help me please how to import excel 2013 table into SQL 2013?Thanks
View ArticleMax Column Question
Hello everyone. I have a SQL SELECT statement that is working great, but is returning multiple rows in one of my Left Outer Joins. As this table is on the right of the Left Outer Join, I thought it...
View ArticleHow to Eliminate Null Columns
HI TeamI want to Remove below Null values , Can you please help me out LocationEmployee_CodeInTimeInDateOutTimeOutDate DPFZR2-M0105:55:5404/01/2014NULLNULL DPFZR2-M01 22:45:0804/01/2014NULLNULL...
View ArticleParsing Non Numeric Range
I have a list of code ranges as follow. 3-7 characters in length, Digit 1 is alpha; digit 2 is numeric, digit 3 is numeric/alpha; digits 4-7 are alpha or numericThe range seems to increment in digit...
View ArticleHow to know the name of a sql scalar function inside its body?
Hi. Is there a way to know the name of a sql function from the inside of its body? I want this to be dynamic so that when the name of the function is changed, one doesn't have to update the name string...
View ArticleDependencies between Objects
Hi Folks,My client has asked me to move from one db to another. (I don't know why, may be they are restructuring). Now the problem is that there are many stored procedures, functions and tables which I...
View ArticleSP for Check Existing Some Char in Col (Returns False / True)
Hello Friends, I am looking for a SP you can check values within a field.Parameters: ASCII code value (from) ASCII code value (until) Output parameters: Boolean output (whether present or not) Is...
View Articlewhile loop?
I want to see the number of sales each salesperson makes in a month for a year and if they make no sales in any month they are dropped from the list. I have a while loop that I thought might do this...
View ArticleNEEDED: More T-SQL Answerers
We need more answerers in this forum! The basic idea is that if our answers get marked, then we know which threads to focus on (no questions left behind), and the people who answer the questions can at...
View ArticleACUODBC - Link Passport ERP Vision (cobol files) to SQL Server 2005
I am attempting to set up an ODBC from ACUODBC (called AcuXDBC) to allow a 'linked' server to read data from an ERP cobol VISION database that is maintained by an application called Passport Business...
View ArticleUpdate column based on a parsed value from another column
<p>i have table1 which has description, region and division columns. If the "description like '% (%.% or %.%'" I want to parse the first '%.%' which has the values...
View ArticleExtract date from String
I have data like this .I want to convert this into dates in this manner -cycle1 indicates date on the 15<sup>th</sup> of month and cycle2 indicates date on the last day of the month. For...
View ArticleHelp required for update SQL
Hi Guys, I am looking for some help to frame the update query. I have two tables temp_1 and temp_2. I want to update temp_2 based on data from temp_1. However i do not want to make an update where...
View ArticleHow can i define a boolean variable with the condition if i got a specific...
How can i define a boolean variable with the condition if i got a specific text on a selected column?Example:my select results:[id = 102] [Company = 'Microsoft']If i got microsoft in 'Company' i want...
View ArticleHow to check if value exists in sql table if not then add it from Excel file
Hi,I have one excel file having one filed called Source(Excel file has 2 fields, one of them is Source). And I have one table in SQL server name Source.So I have to check is if the Source(Field name)...
View ArticleCompare data between two tables of same schema
Folks,I have one very intresting query which i would like to share with you all and looking forward for the solution asap.ScenarioI have two table say TableA and TableB, both having same structre say...
View ArticlePerformance - Stored Procedure versus inline
I always assumed that putting code inside a Stored Procedure would result in faster execution that executing in-line with EXEC(). However to my surprise with a little test it does not appear to be the...
View ArticleSelect people older than 65
Hi Guys,I'm quite new to sql. I want to make a query that retrieves al the data from people that are 65 and older. Here's what i've tried so far select...
View ArticleGroup by ID get count of records in each million range
I have a table that has 72m records. The clientID column highest number is 197m. So I want to get a count of records per million. So the first record would return how many records there were with a...
View Articlealter table
hiI have some problemhow could i turn table identity off?is any one can help me
View Article