Quantcast
Channel: Forum Getting started with SQL Server
Browsing all 8979 articles
Browse latest View live

Help with Division Calcualtion

Hi, I need help with the following logic to be put into some code if possible please? I am looking at working out the renewal rate of contracts but I'm not too sure how to code this up. I need to...

View Article


Error 0xc002f210 during Import of Data

I am using the same process/steps to import data every time.  Sometimes I can import the data, sometimes it does not work.  There is no pattern or reason, just random working or not working.  I am...

View Article


Condense Record output

Hi,My code below outputs 3 records as the Date variable is YYYY-MM-DD of which I have formatted to MMM-YY. How do I condense these please so I only show 1 record with the total value? select...

View Article

Using Import and Export Data Wizard - Large text truncates

I am new to using SQL Server and have ben trying to import some data from a flat file in text format, which has a very large amount of text in one of the fields.  When I try to import using the wizard...

View Article

Limitations of View

Hi Experts,I am new to SQL. I learn a little for View.Can someone give me a explanation. I will appreciate a lot if you provide me some examples.

View Article


What data type should I put decimal value?

Hi guys,Does anyone know what data type should I put for data up to 9 decimal places? float or ?Example value : 103.6349816 and 1.2703401666Regards,Tan

View Article

Add one subquery to existing query to get the percentage from another table

i am working on multi level marketing website binary tree based.Below query is returning me total number of left side and right side members. Below query is working fine. Now i want to add one more...

View Article

Image may be NSFW.
Clik here to view.

SQL Query Modification Request

Hello Experts,Can someone help modify a SQL script.The following script will compare columns A B C from TableA and TableB and if it sees a match will output the rows as shown in the following image....

View Article


Permutations and combinations of multiple return codes

hi guys, can anyone help me with this, i have 6 columns with the "return codes" for SEO in each column i want to do all possible permutations and combinations of each return code in one with other...

View Article


Do I need to write scripts to connect SQL to Tableau?

Hi all,Just want to ask anyone who is using SQL server for Tableau purpose.Do I need to write a script to connect my data to sql.Right now I created a table with all the variables that I have in my...

View Article

Patching

Hi All, I am trying to gather some SQL server version and OS lvl information and thinking what is the best way to do it since I have more than 10 servers.1. How can I get the OS and SQL server current...

View Article

Length of varchar column - is there an advantage to using 255?

I often come across columns that are varchar(255), so presumably this is a convention of sorts. 255 is 2^8 - 1. So is there something 'magical' about lengths that are 2^n - 1? Or just specifically 255?...

View Article

SQL Server in Hyper-V

Hello,I'm thinking of moving my SQL databases in VMs to help with the constant problem of disk space.Could you please point me to some useful documents?Any tips on improving hard disk performance for...

View Article


Pull out accounts that don't match 2 tables

Hi,I need to create a report that reports on accounts that are in table 1(KT) but not in table 2(KP). select  KT.j_number,  KT.c_name,  KT.total_contract,  KP.invoiced_total, from  KT  left join KP on...

View Article

Error converting data type varchar to numeric.

Hi,Here is my function SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO ALTER FUNCTION [dbo].[uf_getCamraTime](@camra_time decimal ) RETURNS decimal AS BEGIN declare @num as decimal(10,2) set...

View Article


QUERY PERFORMANCE BAD WHEN RUN ALL TOGETHER

Dear DBAs and developersi have this query when running all together it takes forever, but when run subquery part and main query seperately they both return results very fastSELECT COUNT (*) FROM...

View Article

Azure elastic query from tutorial resulting in error msg 46823, error...

Hello,  I have attempted to use the elastic query tutorial (code below) and I am getting a 46823 message which says "Error retrieving data from database.staging" - which doesn't help me at all. Please...

View Article


SQL 2017 Certifications?

Any news on when Microsoft will release certification exams for SQL 2017?  I have searched everywhere, but no luck.  My boss wants to know when I can get certified on SQL 2017.

View Article

replicating COUNTIF excel function in SQL

Hi,I have some code that pulls data from SQL Server, but I want to add an extra column onto the results that counts the distinct items in one specific column and adds that to the end of each row.For...

View Article

The backend version is not supported to design database diagrams or tables

Hi Experts,Why I always get the error message when creating table in SSMS.The backend version is not supported to design database diagrams or tables.Thanks in advance.

View Article
Browsing all 8979 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>