SlideShare a Scribd company logo
60 Reporting Tips in
60 Minutes
April 20 - 22, 2015 | Santa Clara, CA
Ike Ellis
Partner
Crafting Bytes
SSRS: HTML color picker websites
SSRS: Skip GIS, use MorgueFile
SSMS: Query Shortcuts
SELECT COUNT(*) FROM
SELECT TOP 100 * FROM
SSMS: Don’t forget the splitter bar
SSMS: Comment Shortcut Key
CTRL-K, C
CTRL-K, U
Lifehack: Start 2014 with a jar and fill it
with notes of good things that happen
Next New Year’s Eve, empty the jar and see what awesome
stuff happened that year.
Performance: Check for heaps/clustered
indexes
SELECT t.[Name] FROM sys.Indexes i
JOIN sys.Tables t
ON t.Object_ID = i.Object_id
WHERE i.type_desc = 'HEAP'
ORDER BY t.[Name]
Performance: Index all the keys
select object_name(c.object_id), c.name from sys.columns c
where c.name like '%id'
and c.object_id not in
(
select object_id
from sys.index_columns
)
Lifehack: Readable Presentations
Take the average age of the people in your audience and
divide by 2: That’s your font size
Do you want to know what I think you’re average is? My font size is
typically 20 – 24.
SSIS: The proper way to execute an SSIS
package
Power BI - Visualization: Bad Dashboard
Power BI - Visualization: Use color
sparingly.
In nature, colors do two things:
1) Entice
2) Warn
So let’s use them sparingly..
WARNING: POISON FROG!
Power BI -Visualization: Stephen Few
Power BI - Visualization: Cynthia Brewer
Power BI: Tips for Visualization
Make the most important information the biggest
Put it in the upper-left corner
T-SQL: No reason to use ISNULL 
CONCAT!
Messy vs clean code
No + symbol needed
No ISNULL needed
Lifehack: If you backpack, but need
news, search Wikipedia by month &
year
Search Schema: Object Explorer Details
F7
Search Schema: T-SQL
select object_name(object_id), definition as name
from sys.all_sql_modules
where definition like '%cust%'
Search Schema: SQL Search - Free
SSDT: Search options
Spotlight
T-SQL: Use windowing functions
Neat evolution
Lifehack: Presentation tip
T-SQL: Prettify!
http://extras.sqlservercentral.com/prettifier/prettifier.aspx
RedGate PlugIn for SQL Server Management Studio
TSQL: Or use SQLPrompt - RedGate
T-SQL: Execute scripts over multiple
servers
Tip: Life is so easy with a dates table
Find the sales numbers for the first Monday of every month
of the year
T-SQL with no dates table
T-SQL with dates table
Lifehack: Motorcyclist signaling cop to
other motorcyclist
Looks like a siren on top!
T-SQL: Try_Cast
Avoiding terrible casting errors
T-SQL: Never reinvent the wheel – SQL#
Take SQL# for example
Good Documentation
Easy Syntax
Cheap (and much of it is free)
LIfehack: If you take a power strip to
the airport during the winter, you’ll be a
hero
T-SQL: Save scripts in a project for easy
navigation
SSRS: Log, Log, Log (and beware of
subscriptions)select c.Name
, e.InstanceName
, e.UserName
, e.Parameters
, e.TimeStart
, e.TimeEnd
, e.TimeDataRetrieval
, e.TimeProcessing
, e.TimeRendering
from executionlog e
join catalog c
on e.reportid = c.ItemID
Send a Link, or a file on a shared folder that you can audit. Find someway to audit who opened the link or the file
in the folder. Try to avoid sending the PDF without a way to audit it.
Performance: Big lines
When troubleshooting, thick rows means lots of data, thin rows mean not much data.
You’re probably better off following the thick rows.
Lifehack: Today’s most precious
commodity – FOCUS!
SSRS: Store colors in the database
Colors = Business Logic
Put it in the database
Use Expressions to read the colors
Include action colors and levels
SSRS: Get Buy-in to Export to Single
Format
Build to export to a single format
• Excel
• Word
• Web
• PDF
Then get buy-in and make it a standard in the organization
Demo: Build to export to excel
Manage: Alias, Obscure, and De-couple
Views, Aliases
Lifehack: Keep notes daily on what you
do
Makes CVs easier
Makes reviews easier
Makes promotions easier
SSAS: Views are better than DSVs
• Easier to manage
• Can use SQL Search tools
• Can use SQL Dependency Tools
• Have a set of views only used by analysis services..so you
can change them without telling anyone else
SSRS: Used Linked Reports to Manage
Security
• Allows you to use Role assignments and
• Not have duplicate reports in folders
• Not have users in folders they shouldn’t be in
• Not manage security on individual reports
Management: Use Active Directory for
report security and cube security
User
Active Directory Group
Permission
One group – One Report
Management: Keep Report Quantity
Small
Too many reports means that there are more things to keep
consistent
Reports that aren’t used, tend to get forgotten, and then
used with bad data
Manage: Interview one person at a time
when gathering requirements
Manage: Find the key person
• They know a lot
• They have time
• They respond quickly
• They are most often right
• They might not be
likeable, and that’s OK
• Success – Work in their
office
Lifehack: If you want ambient light, do
this
SSAS: Change one thing at a time
And break calculations down to their simplest form, deploy,
test, and change one more thing.
Manage: Very few KPIs and numbers!
""The well-intentioned desire to be great at everything is
precisely what leads to exhausted
mediocrity" https://www.youtube.com/watch?v=DWKvSG_
9s5I"
Walmart customer service
SSRS: Use a report footer
Put row count there
SSRS: Report footer
Put executive sponsor there & email address
Data mart: Use friendly names
everywhere
Use spaces and long names
Manage: Use a wiki for taxonomy
Record owner
Record changes
Record technical calculation
Lifehack: Have the child call you
Whenever someone comes around saying "Would you like
to buy blah blah blah, my kid is going to do whatever."
I tell them, "Yes, I would love to! But your child has to be
the one to ask me." I then give them my number and say
the child can call anytime after 6pm.
Career: Learn in a group
SSMS: Status bar on top
SSMS: Color the status bar
Excel: Defer Layout Update
SSAS – Prevent load and delay when using
pivot tables.
Excel: Four Directional Arrow for
custom sort
Excel: Sorting is by level
Excel: Filter – Keep only selected items
And hide selected item.
Notice the total changes.
Excel: Member Search
SSMS: Script parameters
Windows: Use the middle mouse
button to close tabs
Close windows fast
Works in Chrome, SSDT, SSMS, Excel, Everywhere
SSMS: Quickly alias columns
CTRL-ALT-DOWNARROW for block selection
Manage: How to share passwords
LAST TIP! My YouTube Channel!
https://www.youtube.com/user/IkeEllisData
Contact Me!
http://blog.ikeellis.com
http://www.ikeellis.com
YouTube
• http://www.youtube.com/user/IkeEllisData
SQL Pass Book Readers
• http://bookreaders.sqlpass.org/
San Diego Tech Immersion Group
Twitter: @ike_ellis
619.922.9801
Email address is just my first name @ikeellis.com
Your feedback
is important
and valuable.
Submit by
11:59 PM PT,
April 30, 2015 to
WIN prizes
Session Evaluations
Go to
passbac2015/evals
Download the PASS
EVENT App from
your App Store and
search: PASS BAC
2015
Follow the QR code
link displayed on
session signage and
in the program
guide
for attending this
session and the
PASS Business
Analytics
Conference 2015
Thank
You

More Related Content

PPTX
Tips & Tricks SQL in the City Seattle 2014
PPTX
A lap around microsofts business intelligence platform
PPTX
60 reporting tips in 60 minutes - SQLBits 2018
PPTX
Cloud architectural patterns and Microsoft Azure tools
PPTX
Data modeling trends for Analytics
PPTX
Azure Databricks is Easier Than You Think
PPTX
Event Hub & Azure Stream Analytics
PPTX
Azure Stream Analytics
Tips & Tricks SQL in the City Seattle 2014
A lap around microsofts business intelligence platform
60 reporting tips in 60 minutes - SQLBits 2018
Cloud architectural patterns and Microsoft Azure tools
Data modeling trends for Analytics
Azure Databricks is Easier Than You Think
Event Hub & Azure Stream Analytics
Azure Stream Analytics

What's hot (20)

PDF
Adf and ala design c sharp corner toronto chapter feb 2019 meetup nik shahriar
PPTX
Modern ETL: Azure Data Factory, Data Lake, and SQL Database
PPTX
R in Power BI
PPTX
SSIS Monitoring Deep Dive
PDF
Building Search Engines - Lucene, SolR and Elasticsearch
PDF
Moving to the cloud; PaaS, IaaS or Managed Instance
PPTX
Agile Data Warehousing
PDF
Open Source DataViz with Apache Superset
PDF
Tools and Tips For Data Warehouse Developers (SQLGLA)
PPTX
ADL/U-SQL Introduction (SQLBits 2016)
PPTX
Analyzing StackExchange data with Azure Data Lake
PPTX
U-SQL Federated Distributed Queries (SQLBits 2016)
PPTX
SQL Azure - the good, the bad and the ugly.
PPTX
Azure data lake sql konf 2016
PPTX
Azure Data Lake and U-SQL
PPTX
Building Enterprise Search Engines using Open Source Technologies
PPTX
U-SQL Query Execution and Performance Basics (SQLBits 2016)
PPT
OfficeWriter and the Application Platform
PPTX
Microsoft Data Integration Pipelines: Azure Data Factory and SSIS
PPTX
U-SQL - Azure Data Lake Analytics for Developers
Adf and ala design c sharp corner toronto chapter feb 2019 meetup nik shahriar
Modern ETL: Azure Data Factory, Data Lake, and SQL Database
R in Power BI
SSIS Monitoring Deep Dive
Building Search Engines - Lucene, SolR and Elasticsearch
Moving to the cloud; PaaS, IaaS or Managed Instance
Agile Data Warehousing
Open Source DataViz with Apache Superset
Tools and Tips For Data Warehouse Developers (SQLGLA)
ADL/U-SQL Introduction (SQLBits 2016)
Analyzing StackExchange data with Azure Data Lake
U-SQL Federated Distributed Queries (SQLBits 2016)
SQL Azure - the good, the bad and the ugly.
Azure data lake sql konf 2016
Azure Data Lake and U-SQL
Building Enterprise Search Engines using Open Source Technologies
U-SQL Query Execution and Performance Basics (SQLBits 2016)
OfficeWriter and the Application Platform
Microsoft Data Integration Pipelines: Azure Data Factory and SSIS
U-SQL - Azure Data Lake Analytics for Developers
Ad

Viewers also liked (20)

PPTX
Introduction to Azure DocumentDB
PPTX
11 Goals of High Functioning SQL Developers
PDF
Smart Reporting: How to Stop Wasting Time and Make Better Marketing Decisions
PPTX
In time reporting: why is it a better alternative?
PPTX
Online + reporting
PDF
Reporting tips & tricks
PPTX
Moneyball
PPT
Report Writing
PPT
Stress workshop 3 relationships 1: Couples and intimate relationships
PPT
Lesikar report writing basics
PPT
Basics (Reports Writing 2)
PDF
10 Best Practices for Tableau Dashboard Design: Data Exploration and Actionab...
PPT
Basics (Reports Writing)
PPSX
Mango: Successful grant management for NGOs
PPT
14 Ways to Share Results with Donors
PPTX
Report writing
PDF
Ppt on Report Writing
PPTX
Repot writing ppt
PPTX
REPORT WRITTING
Introduction to Azure DocumentDB
11 Goals of High Functioning SQL Developers
Smart Reporting: How to Stop Wasting Time and Make Better Marketing Decisions
In time reporting: why is it a better alternative?
Online + reporting
Reporting tips & tricks
Moneyball
Report Writing
Stress workshop 3 relationships 1: Couples and intimate relationships
Lesikar report writing basics
Basics (Reports Writing 2)
10 Best Practices for Tableau Dashboard Design: Data Exploration and Actionab...
Basics (Reports Writing)
Mango: Successful grant management for NGOs
14 Ways to Share Results with Donors
Report writing
Ppt on Report Writing
Repot writing ppt
REPORT WRITTING
Ad

Similar to SQL PASS BAC - 60 reporting tips in 60 minutes (20)

PPTX
Top 10 sql server reporting services tips
PPTX
SQL Server Tips & Tricks
PPTX
SQL Pass Architecture SQL Tips & Tricks
PDF
Brad McGehee Become an Exceptional DBA March 2009
PDF
Tools and Tips: From Accidental to Efficient Data Warehouse Developer (24 Hou...
PPTX
Presentation 1 - SSRS (1)
PPTX
Agile Methodology Approach to SSRS Reporting
PPT
Netvu test slideshow
PPTX
SQL Server Reporting Services (SSRS) 101
PDF
Tools and Tips: From Accidental to Efficient Data Warehouse Developer (SQLSat...
PDF
Tools and Tips: From Accidental to Efficient Data Warehouse Developer (SQLBit...
PPTX
Sql business intelligence
PDF
Professional Microsoft SQL Server 2016 Reporting Services and Mobile Reports ...
PPTX
PDF
Business intelligence
PPT
MSBI-SSRS PPT
PDF
SQL Server Dev ToolKit
PPTX
Enhancing your Budget & Reporting Process with SAI
PDF
Business Intelligence Technology Presentation
PDF
Selje_SSMS for the Accidental DBA.pdf
Top 10 sql server reporting services tips
SQL Server Tips & Tricks
SQL Pass Architecture SQL Tips & Tricks
Brad McGehee Become an Exceptional DBA March 2009
Tools and Tips: From Accidental to Efficient Data Warehouse Developer (24 Hou...
Presentation 1 - SSRS (1)
Agile Methodology Approach to SSRS Reporting
Netvu test slideshow
SQL Server Reporting Services (SSRS) 101
Tools and Tips: From Accidental to Efficient Data Warehouse Developer (SQLSat...
Tools and Tips: From Accidental to Efficient Data Warehouse Developer (SQLBit...
Sql business intelligence
Professional Microsoft SQL Server 2016 Reporting Services and Mobile Reports ...
Business intelligence
MSBI-SSRS PPT
SQL Server Dev ToolKit
Enhancing your Budget & Reporting Process with SAI
Business Intelligence Technology Presentation
Selje_SSMS for the Accidental DBA.pdf

More from Ike Ellis (20)

PPTX
Storytelling with Data with Power BI
PPTX
Storytelling with Data with Power BI.pptx
PPTX
Build a modern data platform.pptx
PPTX
Data Modeling on Azure for Analytics
PPTX
Migrate a successful transactional database to azure
PPTX
Data modeling trends for analytics
PPTX
Relational data modeling trends for transactional applications
PPTX
Power bi premium
PPTX
Move a successful onpremise oltp application to the cloud
PPTX
Pass 2018 introduction to dax
PPTX
Pass the Power BI Exam
PPTX
Slides for PUG 2018 - DAX CALCULATE
PPTX
Introduction to DAX
PPTX
14 Habits of Great SQL Developers
PPTX
14 Habits of Great SQL Developers
PPTX
Dive Into Azure Data Lake - PASS 2017
PPTX
Survey of the Microsoft Azure Data Landscape
PPTX
Azure DocumentDB 101
PPTX
Hadoop for the Absolute Beginner
PPTX
Continuous integration sql in the city
Storytelling with Data with Power BI
Storytelling with Data with Power BI.pptx
Build a modern data platform.pptx
Data Modeling on Azure for Analytics
Migrate a successful transactional database to azure
Data modeling trends for analytics
Relational data modeling trends for transactional applications
Power bi premium
Move a successful onpremise oltp application to the cloud
Pass 2018 introduction to dax
Pass the Power BI Exam
Slides for PUG 2018 - DAX CALCULATE
Introduction to DAX
14 Habits of Great SQL Developers
14 Habits of Great SQL Developers
Dive Into Azure Data Lake - PASS 2017
Survey of the Microsoft Azure Data Landscape
Azure DocumentDB 101
Hadoop for the Absolute Beginner
Continuous integration sql in the city

Recently uploaded (20)

PDF
Machine learning based COVID-19 study performance prediction
PDF
Empathic Computing: Creating Shared Understanding
DOCX
The AUB Centre for AI in Media Proposal.docx
PDF
The Rise and Fall of 3GPP – Time for a Sabbatical?
PDF
CIFDAQ's Market Insight: SEC Turns Pro Crypto
PDF
solutions_manual_-_materials___processing_in_manufacturing__demargo_.pdf
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PDF
Mobile App Security Testing_ A Comprehensive Guide.pdf
PDF
KodekX | Application Modernization Development
PDF
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
PPTX
breach-and-attack-simulation-cybersecurity-india-chennai-defenderrabbit-2025....
PPTX
Cloud computing and distributed systems.
PDF
Approach and Philosophy of On baking technology
PDF
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
PDF
GDG Cloud Iasi [PUBLIC] Florian Blaga - Unveiling the Evolution of Cybersecur...
PPTX
PA Analog/Digital System: The Backbone of Modern Surveillance and Communication
PDF
Modernizing your data center with Dell and AMD
PPTX
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
PDF
Per capita expenditure prediction using model stacking based on satellite ima...
PPTX
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
Machine learning based COVID-19 study performance prediction
Empathic Computing: Creating Shared Understanding
The AUB Centre for AI in Media Proposal.docx
The Rise and Fall of 3GPP – Time for a Sabbatical?
CIFDAQ's Market Insight: SEC Turns Pro Crypto
solutions_manual_-_materials___processing_in_manufacturing__demargo_.pdf
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
Mobile App Security Testing_ A Comprehensive Guide.pdf
KodekX | Application Modernization Development
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
breach-and-attack-simulation-cybersecurity-india-chennai-defenderrabbit-2025....
Cloud computing and distributed systems.
Approach and Philosophy of On baking technology
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
GDG Cloud Iasi [PUBLIC] Florian Blaga - Unveiling the Evolution of Cybersecur...
PA Analog/Digital System: The Backbone of Modern Surveillance and Communication
Modernizing your data center with Dell and AMD
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
Per capita expenditure prediction using model stacking based on satellite ima...
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy

SQL PASS BAC - 60 reporting tips in 60 minutes

Editor's Notes

  • #18: update sales.customers set contacttitle = null where custid in ('59', '66', '78', '15') use tsql2012 select * from sales.customers select ContactName + ' - ' + ContactTitle + ', ' + City as GreetingLine from sales.customers select isnull(ContactName, '') + ' - ' + isnull(ContactTitle, '') + ', ' + isnull(City, '') as GreetingLine from sales.customers select concat(ContactName, ' ', ContactTitle, ' ', City) as GreetingLine from sales.customers
  • #24: use tsql2012 select * from sales.orders select custid, freight from sales.orders select custid, freight, sum(freight) as totalFreight from sales.orders select custid, sum(freight) as totalFreight from sales.orders group by custid select custid, freight, sum(freight) as totalFreight from sales.orders group by custid select custid, freight, sum(freight) as totalFreight from sales.orders group by custid, freight --we're skipping subqueries, because they look ugly and --it insults me aesthetically ;with FreightTotal as ( select custid, sum(freight) as totalFreight from sales.orders group by custid ) select o.custid , o.freight , ft.totalFreight as totalFreight from sales.orders o join FreightTotal ft on o.custid = ft.custid --BIG IMPROVEMENT --query can be executed independantly --Can be reused, like this ;with FreightTotal as ( select custid, sum(freight) as totalFreight from sales.orders group by custid ) select o.custid , o.freight , ft.totalFreight as totalFreight , o.freight /ft.totalfreight * 100 as FreightPercentage from sales.orders o join FreightTotal ft on o.custid = ft.custid --but remember our original thought process select custid, freight, sum(freight) as totalFreight from sales.orders --here's a windowing function select custid , freight , sum(freight) over (partition by custid) as totalFreight from sales.orders --and reusing it is not that big of a deal select custid , freight , sum(freight) over (partition by custid) as totalFreight , freight / sum(freight) over (partition by custid) * 100 as FreightPercentage from sales.orders
  • #26: SELECT * FROM (SELECT urgency, name, phone, location, department, cc, status, case_manager, ip, case_manager_ei d, id_problem, id_problem_type, eid_author, title, body, date_created, date_modified FROM problems AS main INNER JOIN (SELECT id_problem as t_urgency_id_problem, node_value AS urgency FROM problem_nodes WHERE node_name = "urgency")t_urgency ON t_urgency.t_urgency_id_problem = main.id_problem INNER JOIN (SELECT id_problem as t_name_id_problem, node_value AS name FROM problem_nodes WHERE node_name = "name")t_name ON t_name.t_name_id_problem = main.id_problem INNER JOIN (SELECT id_problem as t_phone_id_problem, node_value AS phone FROM problem_nodes WHERE node_name = "phone")t_phone ON t_phone.t_phone_id_problem = main.id_problem INNER JOIN (SELECT id_problem as t_location_id_problem, node_value AS location FROM problem_nodes WHERE node_name = "location")t_location ON t_location.t_location_id_problem = main.id_problem INNER JOIN (SELECT id_problem as t_department_id_problem, node_value AS department FROM problem_nodes WHERE node_name = "department")t_department ON t_department.t_department_id_problem = main.id_problem INNER JOIN (SELECT id_problem as t_cc_id_problem, node_value AS cc FROM problem_nodes WHERE node_name = "cc")t_cc ON t_cc.t_cc_id_problem = main.id_problem INNER JOIN (SELECT id_problem as t_status_id_problem, node_value AS status FROM problem_nodes WHERE node_name = "status")t_status ON t_status.t_status_id_problem = main.id_problem INNER JOIN (SELECT id_problem as t_case_manager_id_problem, node_value AS case_manager FROM problem_nodes WHERE node_name = "case_manager")t_case_manager ON t_case_manager.t_case_manager_id_problem = main.id_problem INNER JOIN (SELECT id_problem as t_ip_id_problem, node_value AS ip FROM problem_nodes WHERE node_name = "ip")t_ip ON t_ip.t_ip_id_problem = main.id_problem INNER JOIN (SELECT id_problem as t_case_manager_eid_id_problem, node_value AS case_manager_eid FROM problem_nodes WHERE node_name = "case_manager_eid") t_case_manager_eid ON t_case_manager_eid.t_case_manager_eid_id_problem = main.id_problem)t
  • #29: ;with FirstMondays as ( Select DateAdd(day, (9-DatePart(weekday, DateAdd(Month, 1+DateDiff(Month, 0, '12/1/2009'), 0)))%7, DateAdd(Month, 1+DateDiff(Month, 0, '12/1/2009'), 0)) as FirstMonday union all select DateAdd(day, (9-DatePart(weekday, DateAdd(Month, 1+DateDiff(Month, 0, FirstMonday), 0)))%7, DateAdd(Month, 1+DateDiff(Month, 0, FirstMonday), 0)) from FirstMondays where firstMonday <= '12/1/2010' ) select * from FirstMondays use adventureworksdw2012 select EnglishMonthName, min(datekey) from dimdate where englishdaynameofweek = 'monday' and calendaryear = '2010' group by EnglishMonthName, MonthNumberOfYear order by MonthNumberOfYear
  • #31: create table t1 (col1 varchar(100)) insert into t1 (col1) values ('1') ,('2') ,('3') ,('ike') ,('1') ,('2') ,('3') ,('ike') , ('1') ,('2') ,('3') ,('ike') select cast(col1 as int) from t1 select try_cast(col1 as int) from t1
  • #32: SELECT SQL#.Date_Format('2009-12-03 12:45:56.345', 'D', '') -- Thursday, December 03, 2009 SELECT SQL#.Date_Format('2009-12-03 12:45:56.345', 'D', 'de') SELECT SQL#.Date_Format('2009-12-03 12:45:56.345', 'D', 'fr-fr') -- jeudi 3 décembre 2009 SELECT SQL#.Date_Format('2009-12-03 12:45:56.345', 'dd', '') -- 03 SELECT SQL#.Date_Format('2009-12-03 12:45:56.345', 'dd-MMM', '') SELECT SQL#.Date_Format('2009-12-03 12:45:56.345', 'tt', 'ja-jp') -- 午後 SELECT SQL#.Math_IsPrime(12318237133333)
  • #64: SELECT * FROM sales.Customers WHERE custid = <custid, int, 0> SELECT * FROM sales.customers c JOIN sales.orders o ON c.custid = o.custid WHERE c.custid = <custid, int, 0> AND o.orderdate > <orderdate, datetime, '1/1/2015'>