Quantcast
Browsing all 76 articles
Browse latest View live

data compare of two tables

Hi Everyone, I have two tables with the same schema in the same database. I need to compare the data between the tables. There are around 30 million records for 40 columns. Can you suggest me the best...

View Article


The order of records in a select query

HI , I have 2 tables Table and Table_1 which are my destination table in my data upload. They have the same columns and same structure. I am executing two select queries on the two tables which does a...

View Article


sql update issue

Hi , I have a situation here. When i run my update for 30 million rows it updates the a field incorrectly for 5 records only.It is a float type field .I am calculating a sum of a values and updating it...

View Article

group by and loop

I have a table which has fields Code,Company,City,Zip,County,State,Type first i need to group the data by Code and company. i.e group A Code:001 and Company:A group B Code:002 and Company:A and so on...

View Article

check if all characters in string are same

How to check if all the characters in a string are the same ? Thanks Kannan

View Article


string to columns in select

Hi One of my string column has data such as ColumnA,INT|COLUMNB,VARCHAR(10) i need to read the data and insert into a temp table Columns DataType ColumnA INT ColumnB varchar(10) Kindly help me with...

View Article

MS SQL TABLE PARTITIONING

Hi , I am trying to partition my sql table based on year. Can some one help me on where to start ? I have no idea on partioning ? Any link on step by step creation will be helpful Thanks in advance,...

View Article

sql 2012 certifications

Hi All, I am not very clear about the new certifications for SQL Server 2012. I already have the certifications MCITP in Business Intelligence sql 2008 (70-452 & 70-448) and also MCTS ,Database...

View Article


merge perfomance improvement

Hi All, I am using a merge query to do an update(Please find the query below, There are around 30 columns in each table but i have just provided three here) There are about 30 million records in the...

View Article


Padding in sql

What is the equivalent for the RPAD function in SQL? Example RPAD(LTRIM(RTIM(Column1)) , 10 , '')

View Article

SQL TO GET XML

![alt text][1] [1]: /storage/temp/1124-xml.png

View Article

StoredProcedure Changes Tracking

Hi All, I Need to identify stored procedure Changes(i.e altered by anyone) through DML triggers even if the stored procedure is encrypted. Please let me know any useful tips references to start with....

View Article

SQL Query Help

Hi Please find below mytable structure and expected result. I have tried joining the same table with LastModified less than the other. But I still couldnt it in this order. Thanks in advance [1]:...

View Article


SSIS INSERT/UPDATE Perfomance improvement

I HAVE 40 MILLION RECORDS IN MY PERSON TABLE I HAVE 100000 RECORDS FROM MY SOURCE TABLE WHICH I NEED TO COMPARE WITH PERSON TABLE AND DO AN INSERT,UPDATE OR DELETE ACCORDINGLY. UPDATE IF PERSONID...

View Article

datasets compare

Hi I have two datasets ![alt text][1] [1]: /storage/temp/1198-untitled.png now i need to compare the entire dataset not row by row for example i need to compare Table A & Table B since there is a...

View Article


SQL Query Help needed!

Hi , I am quite stuck at this point in arriving at my expected result. Kindly provide your suggestions. My expected result.I need to Group the data together and give that an id ![alt text][1] CREATE...

View Article

SQL QUERY HELP

Hi All, I have a table such as ![alt text][1] My expected result is Kindly let me know which is the best way to come to this result. switch case or row number ? ![alt text][2] [1]:...

View Article


SQL Query Logic

My Table data is like ![alt text][1] My expected result is ![alt text][2] My Numerator is calculated on the following logic For Duration 0 : Sum of all values For Duration non 0 :Sum of all Values...

View Article

SQL SELECT QUERY HELP

Hi All, I have a table as below TableA (Code,Description,effectivedate) ![alt text][1] We have identified a list of possible duplicates , in the above case there are 2 Codes with the same description...

View Article

SQL Query Logic

Hi , I have the following scenario Kindly let me know which is the best way to do it. Thanks in advance. ![alt text][1] [1]: /storage/temp/1555-screen+shot+2014-06-24+at+12.14.06+pm.png

View Article
Browsing all 76 articles
Browse latest View live