Data Discoveries - Analyzing Formula 1 Race data using SQL Server and Power BI (How to)

  Рет қаралды 1,016

SQLDevDBA

SQLDevDBA

Күн бұрын

Пікірлер: 14
@ins0mniacwastaken
@ins0mniacwastaken 11 ай бұрын
Could you guide me how you converted your data type from nvarchar(max) and used it for production. Without this step its not displaying all the data from 1950-2020. Any help would be appreciated. Thank you.
@SQLDevDBA
@SQLDevDBA 11 ай бұрын
Hey there, of course! You’ll need to first identify the correct data types for each column. Then you’ll need to run an alter statement on the table. ALTER TABLE [tablenamehere] ALTER COLUMN [columnnamehere] VARCHAR(30) Replacing the VARCHAR(30) with the datatype you decide for that column. learn.microsoft.com/en-us/sql/relational-databases/tables/modify-columns-database-engine?view=sql-server-ver16
@SQLDevDBA
@SQLDevDBA 11 ай бұрын
Also, you may be able to take a shortcut by casting the year as an int WHERE CAST(Raceyear AS INT) > 1990 Or in an order by ORDER BY CAST(RaceYear AS INT) DESCRIBE
@ins0mniacwastaken
@ins0mniacwastaken 11 ай бұрын
@@SQLDevDBA Hey! I shall implement these changes thank you for the support! the main error i recieved was "CREATE INDEX statement failed. Column 'Column0' has a data type that cannot participate in a columnstore index. Omit column 'Column0'." for the command "CREATE CLUSTERED COLUMNSTORE INDEX [IX_race_results_1950-2020_CCS] ON DBO.[race_results_1950-2020];" Thank you for the help!
@SQLDevDBA
@SQLDevDBA 11 ай бұрын
@@ins0mniacwastaken no worries, glad I could help! Honestly a Clustered column store index is not 100% necessary, it’s just a shortcut. Brent Ozar has a site called columnscore.com which helps you determine whether it’s needed. You can absolutely sub with another index.
@ins0mniacwastaken
@ins0mniacwastaken 11 ай бұрын
@@SQLDevDBA Thank you so much! Really appreciate all the help I received. Cheers!
@siddhantjain490
@siddhantjain490 Жыл бұрын
import dbaCsv statement not working for me. Its my first time using it can you help me?
@SQLDevDBA
@SQLDevDBA Жыл бұрын
Hi there, you'll want to use the Guide on DBATools.io to get started with it. You'll need to install via PowerShell ISE once, then you'll be good to go. dbatools.io/download/ I would also recommend this book, "DBATools in a month of lunches," as it's a great guide: www.manning.com/books/learn-dbatools-in-a-month-of-lunches
@siddhantjain490
@siddhantjain490 Жыл бұрын
@@SQLDevDBA i downloaded dbatools but getting trust certificate issue. I'm trying to resolve the problem but it's not working
@SQLDevDBA
@SQLDevDBA Жыл бұрын
Hey @siddhantjain490. I want to say you’ll need to make sure you use the -InstallationPolicy Trusted command that is identified in the “Method 2” section of the downloads page. Also you’ll want to click “Yes to All” when you’re prompted to review/accept the certificates. Unfortunately I’m not tied to DBATools in any way (I just really like it) but they are quite helpful and may be able to help you diagnose the install if you contact them: dbatools.io/contact/
@siddhantjain490
@siddhantjain490 Жыл бұрын
Hey, thanks for the reply and this video was really helpful.
@SQLDevDBA
@SQLDevDBA Жыл бұрын
@@siddhantjain490 so happy to hear, thank you very much!
Power BI & SQL: The Secure Connection method You NEED to Know
1:10:14
REAL or FAKE? #beatbox #tiktok
01:03
BeatboxJCOP
Рет қаралды 18 МЛН
Правильный подход к детям
00:18
Beatrise
Рет қаралды 11 МЛН
Differences between GROUPBY and SUMMARIZE
28:30
SQLBI
Рет қаралды 42 М.
SQL Beginner to Advanced in One Hour | CareerFoundry Webinar
1:08:28
Alex The Analyst
Рет қаралды 229 М.
ULTIMATE Power BI Tutorial 📊 Beginner to Pro Course (2024)
3:40:48
Pragmatic Works
Рет қаралды 286 М.