|
|
|
|
|
|
|
|
Question of the Day |
Today's question (by Steve Jones - SSC Editor): | |
dput() | |
I have this dataframe in R:
> HR.hitters rank players Hr yrs.played 1 1 Barry Bonds 762 22 2 2 Hank Aaron 755 23 3 3 Babe Ruth 714 22 4 4 Alex Rodriguez 696 22 5 5 Willie Mays 660 22 6 6 Ken Griffey, Jr. 630 17 7 7 Albert Pujols 633 22 8 8 Jim Thome 612 22 9 9 Sammy Sosa 609 18 10 10 Frank Robinson 586 21What does this code do? > dput(HR.hitters) | |
Think you know the answer? Click here, and find out if you are right. |
Yesterday's Question of the Day (by Steve Jones - SSC Editor) |
Creating Statistics When I use CREATE STATISTICS with multiple columns, what data is used for the histogram? Answer: Only the first column Explanation: Only data from the first column is used to create the histogram. Ref: CREATE STATISTICS - https://docs.microsoft.com/en-us/sql/t-sql/statements/create-statistics-transact-sql?view=sql-server-2017 |
Database Pros Who Need Your Help |
Here's a few of the new posts today on the forums. To see more, visit the forums. |
Finding duplicated values in multiple columns (Not the one we all know of) - This isn’t specifically related to SQL Server 2017 but more a general T-SQL question. I couldn’t find the right place for this question. You may though this is another “duplicated” question that can be solved with Group By and Count > 1 but it’s not. I have been googling for days and pulling my hair […] |
Today's newsletter email had misdirected links (4/22) - Today’s email newsletter features an article titled “Service Broker Part 2: Why Service Broker”. If you click on that link, you’ll be taken to, instead, a 2012 article by Tony Davis on the subject of “Data Compression Double Take”. The link has the underlying address of… https://www.sqlservercentral.com/?post_type=ssc_article&p=7507 |
Express edition DB crossing limit - We have an express edition database and performing bulk import into a table. Table details when fully imported:- number of rows – 143,073 ReservedKB – 66136, Data – 66136, IndexKB – 43352, UnusedKB – 317648 Data file details when fully populated: File size – 10273 MB, Used space – 1348.56 MB, Free Space – 8924.44 […] |
SSIS strips periods off column names in Flat File Connection Manager - This question is related to my previous question but is different in focus, so I’m creating a new question. I have a CSV file that has only column names in it, no data. I’ve created a Flat File Connection Manager in SSIS using Visual Studio 2012. I’ve checked **Column Names in the first data row** […] |
How can I identify gaps in coverage dates - I need to look through 200,000 IDs with multiple dates and identify just the ID’s that have a gap. My first step was going to be to pull all the dates together to see gaps, but all I did was get the Min and Max and ignored the gaps. How can I identify something that […] |
Not Receiving Daily Newsletter - I have not received a daily newsletter since 4/5/19. I asked our support staff if the newsletter email might be getting bounced and they said the last one that came into our system was on 4/5/19. Thanks, Nancy |
Adding images - This should be animated |
How to test Asynchronous Failover - Hi All, I have a working SQL 2016 Enterprise AAG at our primary datacenter using Synchronous mode. We are using a file share witness in another datacenter. I created a new SQL 2016 Enterprise instance in Azure for DR purposes. The AAG at the primary DC is still being tested so is not in production […] |
SSRS not displaying image from AWS S3 bucket - Hi, I am creating a report which needs to show an image from AWS S3 bucket. I am using image source as “External” and Image URL as use this image option. I could see the image in the design view but not in the preview. I am not getting any error while previewing the report. […] |
How to write MERGE statement in sql server - Hi Sir, How to write MERGE statement when using more then two source tables joining with the TARGET table. Sample SQL DDL and insert statement is as below, CREATE TABLE m_exp (m_exp_key INT, m_dea_key INT, m_del_key INT, m_date_key INT ) INSERT INTO m_exp VALUES (10,13,2,201901); INSERT INTO m_exp VALUES (10,13,2,201902); INSERT INTO m_exp VALUES (10,13,2,201903); […] |
How to calculate DTUs or eDTUs for my PAAS SQL database - Hi Expert, Can anyone guide me the way to calculate DTU for my SQL PAAS database. I’m really stuck here. Thanks Brijesh |
Error when creating a database diagram - When I create a new database diagram, I get this error: What does this mean and how can I resolve this? |
SQL Hung - Dear All, My production sql server was hung on a specific day for about 2-3 hours. Can some one help how can i do the post mortem report and what has caused that issue. Thanks in Advance! |
Error when exporting Excel file - I am trying to export an Excel file and I get this error: How do I resolve this? I think this is related to MS Access but I’m exporting to an Excel file (I’m specifying Excel in the Destination field). |
Boolean expression not working - I have the following code: SELECT A, B, A = B FROM (SELECT ((.1 + .2) * 10) as A, (1.0 + 2.0) as B) as tbl1 which returns this: Shouldn’t the 3rd column be named A = B instead of just A? More importantly instead of having a value of 3.0 in the 3rd […] |
| |
©2019 Redgate Software Ltd, Newnham House, Cambridge Business Park, Cambridge, CB4 0WZ, United Kingdom. All rights reserved. webmaster@sqlservercentral.com |