query
stringlengths
24
325
positive
stringlengths
1
580
negative
stringlengths
1
580
What is the current status of the order with the highest shipping cost?
shipping cost and Freight are synonyms; highest shipping cost refers to MAX(Freight);
High quality refers to the product's quality class, therefore Class = 'H'
What is the current status of the order with the highest shipping cost?
shipping cost and Freight are synonyms; highest shipping cost refers to MAX(Freight);
began work in 2009 or later refers to StartDate> = 2009;
What is the current status of the order with the highest shipping cost?
shipping cost and Freight are synonyms; highest shipping cost refers to MAX(Freight);
BirthDate<'1980-01-01'; single refers to MaritalStatus = 'S' or null;
What is the current status of the order with the highest shipping cost?
shipping cost and Freight are synonyms; highest shipping cost refers to MAX(Freight);
LL Road Frame Sale is a description of special offer
What is the current status of the order with the highest shipping cost?
shipping cost and Freight are synonyms; highest shipping cost refers to MAX(Freight);
average profit = DIVIDE(SUM(SUBTRACT(ListPrice, StandardCost))), (COUNT(ProductSubcategoryID))));
What is the current status of the order with the highest shipping cost?
shipping cost and Freight are synonyms; highest shipping cost refers to MAX(Freight);
product maintenance documents are private refers to DocumentSummary = null
Where can I find the Valley Bicycle Specialists store?
Valley Bicycle Specialists is a name of store; full address = AddressLine1+AddressLine2;
Headset Ball Bearings is name of a product
Where can I find the Valley Bicycle Specialists store?
Valley Bicycle Specialists is a name of store; full address = AddressLine1+AddressLine2;
compartment refers to Shelf; container refers to Bin; Lock Ring is a name of product
Where can I find the Valley Bicycle Specialists store?
Valley Bicycle Specialists is a name of store; full address = AddressLine1+AddressLine2;
credit card number refers to CardNumber;
Where can I find the Valley Bicycle Specialists store?
Valley Bicycle Specialists is a name of store; full address = AddressLine1+AddressLine2;
salable product refers to FinishedGoodsFlag = 1; over 10 reviews refers to count(comments)>10
Where can I find the Valley Bicycle Specialists store?
Valley Bicycle Specialists is a name of store; full address = AddressLine1+AddressLine2;
business number refers to BusinessEntityID where BusinessEntityID = 1496; how long does it take refers to AverageLeadTime
Where can I find the Valley Bicycle Specialists store?
Valley Bicycle Specialists is a name of store; full address = AddressLine1+AddressLine2;
card that expires in 2007 refers to ExpYear = 2007;
Where can I find the Valley Bicycle Specialists store?
Valley Bicycle Specialists is a name of store; full address = AddressLine1+AddressLine2;
PreferredVendorStatus = 1 means 'Do not use if another vendor is available'; CreditRating = 2 means 'Preferred over other vendors supplying the same product'
Where can I find the Valley Bicycle Specialists store?
Valley Bicycle Specialists is a name of store; full address = AddressLine1+AddressLine2;
Night shift refers to Name = 'Night';
Where can I find the Valley Bicycle Specialists store?
Valley Bicycle Specialists is a name of store; full address = AddressLine1+AddressLine2;
Hex Nut 5 is name of a product
Where can I find the Valley Bicycle Specialists store?
Valley Bicycle Specialists is a name of store; full address = AddressLine1+AddressLine2;
female refers to Gender = 'F'; employee who wish to receive email promotion refers to EmailPromotion = 1; percentage = DIVIDE(SUM(Gender = 'F')), (sum(Gender = 'F' or Gender = 'M'))) as percentage;
List all staff in the Shipping and Receiving department who are hired in 2009.
hired in 2009 refers to year(HireDate) = 2009
The Road line refers to the product line, therefore ProductLine = 'R'
List all staff in the Shipping and Receiving department who are hired in 2009.
hired in 2009 refers to year(HireDate) = 2009
Debur and Polish is name of manufacturing location
List all staff in the Shipping and Receiving department who are hired in 2009.
hired in 2009 refers to year(HireDate) = 2009
geographical location refers to group from SalesPerson; ComissionPct refers to commission percentage where ComissionPct > = 0.018;
List all staff in the Shipping and Receiving department who are hired in 2009.
hired in 2009 refers to year(HireDate) = 2009
Next-Door Bike Store is name of a store
List all staff in the Shipping and Receiving department who are hired in 2009.
hired in 2009 refers to year(HireDate) = 2009
Department refers to Name where GroupName = 'Executive General and Administration'
List all staff in the Shipping and Receiving department who are hired in 2009.
hired in 2009 refers to year(HireDate) = 2009
product with large photo refers to LargePhoto NOT null;
List all staff in the Shipping and Receiving department who are hired in 2009.
hired in 2009 refers to year(HireDate) = 2009
Complete sales task refers to meeting sales quota; if Bonus = 0, it means this salesperson doesn't meet quota and vice versa
List all staff in the Shipping and Receiving department who are hired in 2009.
hired in 2009 refers to year(HireDate) = 2009
Mauritius Rupee is name of currency
List all staff in the Shipping and Receiving department who are hired in 2009.
hired in 2009 refers to year(HireDate) = 2009
low class refers to Class = 'L'; universal refers to Style = 'U'; road frame is a name of product subcategory; average profit = AVG(SUBTRACT(ListPrice, StandardCost);
List all staff in the Shipping and Receiving department who are hired in 2009.
hired in 2009 refers to year(HireDate) = 2009
percentage = DIVIDE(SUM(Name = 'Night')), (COUNT(ShiftID)) as percentage;
What is the number of the sub categories for bikes?
Bike refers to the name of the product category, therefore ProductCategoryID = 1
Business along with their numbers refers to the BusinessEntityID; located in Duvall refers to City = 'Duvall'
What is the number of the sub categories for bikes?
Bike refers to the name of the product category, therefore ProductCategoryID = 1
Mauritius Rupee is name of currency
What is the number of the sub categories for bikes?
Bike refers to the name of the product category, therefore ProductCategoryID = 1
Production Technicians refer to the  JobTitle = 'Production Technician%'; single refers to MaritalStatus = 'S'; Vendor contact refers to PersonType = 'VC'
What is the number of the sub categories for bikes?
Bike refers to the name of the product category, therefore ProductCategoryID = 1
Socks is a name of product subcategory
What is the number of the sub categories for bikes?
Bike refers to the name of the product category, therefore ProductCategoryID = 1
Profit as 82.41 = SUTRACT(ListPrice, StandardCost); May of 2012 refers to StartDate = '2012-05'
What is the number of the sub categories for bikes?
Bike refers to the name of the product category, therefore ProductCategoryID = 1
miinimum order quantity refers to MinOrderQty = 100
What is the number of the sub categories for bikes?
Bike refers to the name of the product category, therefore ProductCategoryID = 1
store contact refers to PersonType = 'SC';
What is the number of the sub categories for bikes?
Bike refers to the name of the product category, therefore ProductCategoryID = 1
number of product rejected refers to ScrapedQty; trim length that is too long refers to scrap reason where Name = 'Trim length too long'
What is the number of the sub categories for bikes?
Bike refers to the name of the product category, therefore ProductCategoryID = 1
website purchasing link refers to PurchasingWebServiceURL
What is the number of the sub categories for bikes?
Bike refers to the name of the product category, therefore ProductCategoryID = 1
take more than 2 days to make refers to DaysToManufacture>2; out of stock refers to OnOrderQty = 0 or OnOrderQty is null; manufactured in house refers to MakeFlag = 1
Please list the names of the products that get over 10 reviews and a salable.
salable product refers to FinishedGoodsFlag = 1; over 10 reviews refers to count(comments)>10
salaried employee refers to SalariedFlag = 1; hired in 2007 and later refers to year(HireDate)> = 2007
Please list the names of the products that get over 10 reviews and a salable.
salable product refers to FinishedGoodsFlag = 1; over 10 reviews refers to count(comments)>10
average age = AVG(subtract(year(now), year(HireDate)))
Please list the names of the products that get over 10 reviews and a salable.
salable product refers to FinishedGoodsFlag = 1; over 10 reviews refers to count(comments)>10
more than 10 sick leave hours refers to SickLeaveHours>10; pay rate over 35 refers to Rate>35;
Please list the names of the products that get over 10 reviews and a salable.
salable product refers to FinishedGoodsFlag = 1; over 10 reviews refers to count(comments)>10
work order transaction refers to TransactionType = 'W';
Please list the names of the products that get over 10 reviews and a salable.
salable product refers to FinishedGoodsFlag = 1; over 10 reviews refers to count(comments)>10
Northwest is name of SalesTerritory; US is the CountryRegionCode;
Please list the names of the products that get over 10 reviews and a salable.
salable product refers to FinishedGoodsFlag = 1; over 10 reviews refers to count(comments)>10
geographical location refers to group from SalesPerson; ComissionPct refers to commission percentage where ComissionPct > = 0.018;
Please list the names of the products that get over 10 reviews and a salable.
salable product refers to FinishedGoodsFlag = 1; over 10 reviews refers to count(comments)>10
active status of employees refers to CurrentFlag = 1; Male refers to Gender = 'M'; highest frequency refers to PayFrequency = 2;
Please list the names of the products that get over 10 reviews and a salable.
salable product refers to FinishedGoodsFlag = 1; over 10 reviews refers to count(comments)>10
most reviews refers to MAX(count(ProductID))
Please list the names of the products that get over 10 reviews and a salable.
salable product refers to FinishedGoodsFlag = 1; over 10 reviews refers to count(comments)>10
person number 18 refers to BusinessEntityID = 18; forename refers to FirstName
Please list the names of the products that get over 10 reviews and a salable.
salable product refers to FinishedGoodsFlag = 1; over 10 reviews refers to count(comments)>10
Mauritius Rupee is name of currency
What is the highest pay rate of the employees who are exempt from collective bargaining?
employee exempt from collective bargaining refers to SalariedFlag = 1; highest pay rate refers to max(Rate)
second-lowest rating refers to Rating = 2; high-quality class product refers to Class = 'H'; length of time it takes the company to manufacture a product refers to DaysToManufacture;
What is the highest pay rate of the employees who are exempt from collective bargaining?
employee exempt from collective bargaining refers to SalariedFlag = 1; highest pay rate refers to max(Rate)
increased their current year sales by more than 60% refers to DIVIDE(SUBTRACT(SalesYTD, SalesLastYear),SalesLastYear)>0.6
What is the highest pay rate of the employees who are exempt from collective bargaining?
employee exempt from collective bargaining refers to SalariedFlag = 1; highest pay rate refers to max(Rate)
business along with their IDs = BusinessEntityID; Cellphones refers to PhoneNumberType.name = ‘cell’
What is the highest pay rate of the employees who are exempt from collective bargaining?
employee exempt from collective bargaining refers to SalariedFlag = 1; highest pay rate refers to max(Rate)
active status of employees refers to CurrentFlag = 1; Male refers to Gender = 'M'; highest frequency refers to PayFrequency = 2;
What is the highest pay rate of the employees who are exempt from collective bargaining?
employee exempt from collective bargaining refers to SalariedFlag = 1; highest pay rate refers to max(Rate)
Document Control Assistant refers  to the  JobTitle = 'Document Control Assistant'; hired on 2009/1/22 means the person's hiring date is HireDate = '2009-01-22'; private documents indicate that DocumentSummary is null; DIVIDE(COUNT(DocumentSummary is null), COUNT(DocumentSummary))*100
What is the highest pay rate of the employees who are exempt from collective bargaining?
employee exempt from collective bargaining refers to SalariedFlag = 1; highest pay rate refers to max(Rate)
married refers to MaritalStatus = 'M'; western name style refers to NameStyle = 0; store contact refers to PersonType = 'SC'; probability = Divide (Count (BusinessEntityID( PersonType = 'SC' & MaritalStatus = 'M')), Count (BusinessEntityID ( PersonType) & MariatlStatus = 'M'))
What is the highest pay rate of the employees who are exempt from collective bargaining?
employee exempt from collective bargaining refers to SalariedFlag = 1; highest pay rate refers to max(Rate)
active status of employees refers to CurrentFlag = 1;
What is the highest pay rate of the employees who are exempt from collective bargaining?
employee exempt from collective bargaining refers to SalariedFlag = 1; highest pay rate refers to max(Rate)
amount to be paid refers to TotalDue;
What is the highest pay rate of the employees who are exempt from collective bargaining?
employee exempt from collective bargaining refers to SalariedFlag = 1; highest pay rate refers to max(Rate)
type of employee refers to PersonType;
What is the highest pay rate of the employees who are exempt from collective bargaining?
employee exempt from collective bargaining refers to SalariedFlag = 1; highest pay rate refers to max(Rate)
year of credit card expiration refers to ExpYear;
How many shipments by truck were made?
shipment by truck refers to Name = 'XRQ - TRUCK GROUND';
business ID refers to BusinessEntityID; sales total year to date refers to SalesYTD; most sales total year to date refers to MAX(SalesYTD);
How many shipments by truck were made?
shipment by truck refers to Name = 'XRQ - TRUCK GROUND';
increased their current year sales by more than 60% refers to DIVIDE(SUBTRACT(SalesYTD, SalesLastYear),SalesLastYear)>0.6
How many shipments by truck were made?
shipment by truck refers to Name = 'XRQ - TRUCK GROUND';
PreferredVendorStatus = 1 means 'Do not use if another vendor is available'; CreditRating = 2 means 'Preferred over other vendors supplying the same product'
How many shipments by truck were made?
shipment by truck refers to Name = 'XRQ - TRUCK GROUND';
sales order for 32 units refers to OrderQty = 32
How many shipments by truck were made?
shipment by truck refers to Name = 'XRQ - TRUCK GROUND';
AVG(Rating) = DIVIDE(SUM(rating), COUNT(ReviewerName))
How many shipments by truck were made?
shipment by truck refers to Name = 'XRQ - TRUCK GROUND';
vendor's selling price refers to StandardPrice
How many shipments by truck were made?
shipment by truck refers to Name = 'XRQ - TRUCK GROUND';
male refers to Gender = 'M'; employee refers to PersonType = 'EM'; percentage = DIVIDE(COUNT(Gender = 'M'), COUNT(PersonType = 'MY'))*100%;
How many shipments by truck were made?
shipment by truck refers to Name = 'XRQ - TRUCK GROUND';
cost refers to StandardCost;
How many shipments by truck were made?
shipment by truck refers to Name = 'XRQ - TRUCK GROUND';
company number 1 refers to BusinessEntityId = 1; employee refers to PersonType = 'EM'; full name refers to FirstName + MiddleName + LastName
How many shipments by truck were made?
shipment by truck refers to Name = 'XRQ - TRUCK GROUND';
Transactiontype = 'w' means 'WorkOrder'; transactiontype = 's' means 'SalesOrder'; transactiontype = 'P' means 'PurchaseOrder'; happened in refers to TransactionDate
Among the employees who wish to receive e-mail promotion from AdventureWorks, how many percent of them are female?
female refers to Gender = 'F'; employee who wish to receive email promotion refers to EmailPromotion = 1; percentage = DIVIDE(SUM(Gender = 'F')), (sum(Gender = 'F' or Gender = 'M'))) as percentage;
married refers to MaritalStatus = 'M'; western name style refers to NameStyle = 0; store contact refers to PersonType = 'SC'; probability = Divide (Count (BusinessEntityID( PersonType = 'SC' & MaritalStatus = 'M')), Count (BusinessEntityID ( PersonType) & MariatlStatus = 'M'))
Among the employees who wish to receive e-mail promotion from AdventureWorks, how many percent of them are female?
female refers to Gender = 'F'; employee who wish to receive email promotion refers to EmailPromotion = 1; percentage = DIVIDE(SUM(Gender = 'F')), (sum(Gender = 'F' or Gender = 'M'))) as percentage;
profit on net = subtract(LastReceiptCost, StandardPrice); best profit on net refers to max(subtract(LastReceiptCost, StandardPrice))
Among the employees who wish to receive e-mail promotion from AdventureWorks, how many percent of them are female?
female refers to Gender = 'F'; employee who wish to receive email promotion refers to EmailPromotion = 1; percentage = DIVIDE(SUM(Gender = 'F')), (sum(Gender = 'F' or Gender = 'M'))) as percentage;
Production Technicians refer to the  JobTitle = 'Production Technician%'; single refers to MaritalStatus = 'S'; Vendor contact refers to PersonType = 'VC'
Among the employees who wish to receive e-mail promotion from AdventureWorks, how many percent of them are female?
female refers to Gender = 'F'; employee who wish to receive email promotion refers to EmailPromotion = 1; percentage = DIVIDE(SUM(Gender = 'F')), (sum(Gender = 'F' or Gender = 'M'))) as percentage;
number of departments an employee works for between 2011 and 2012 refers to year(StartDate) BETWEEN 2011 AND 2012 and year(EndDate) BETWEEN 2011 and 2012;
Among the employees who wish to receive e-mail promotion from AdventureWorks, how many percent of them are female?
female refers to Gender = 'F'; employee who wish to receive email promotion refers to EmailPromotion = 1; percentage = DIVIDE(SUM(Gender = 'F')), (sum(Gender = 'F' or Gender = 'M'))) as percentage;
Low quality refers to the product's quality class, therefore Class = 'L'
Among the employees who wish to receive e-mail promotion from AdventureWorks, how many percent of them are female?
female refers to Gender = 'F'; employee who wish to receive email promotion refers to EmailPromotion = 1; percentage = DIVIDE(SUM(Gender = 'F')), (sum(Gender = 'F' or Gender = 'M'))) as percentage;
store contact refers to PersonType = 'SC';
Among the employees who wish to receive e-mail promotion from AdventureWorks, how many percent of them are female?
female refers to Gender = 'F'; employee who wish to receive email promotion refers to EmailPromotion = 1; percentage = DIVIDE(SUM(Gender = 'F')), (sum(Gender = 'F' or Gender = 'M'))) as percentage;
cost refers to StandardCost;
Among the employees who wish to receive e-mail promotion from AdventureWorks, how many percent of them are female?
female refers to Gender = 'F'; employee who wish to receive email promotion refers to EmailPromotion = 1; percentage = DIVIDE(SUM(Gender = 'F')), (sum(Gender = 'F' or Gender = 'M'))) as percentage;
LL Road Frame Sale is a description of special offer
Among the employees who wish to receive e-mail promotion from AdventureWorks, how many percent of them are female?
female refers to Gender = 'F'; employee who wish to receive email promotion refers to EmailPromotion = 1; percentage = DIVIDE(SUM(Gender = 'F')), (sum(Gender = 'F' or Gender = 'M'))) as percentage;
compartment refers to Shelf; container refers to Bin; Lock Ring is a name of product
Among the employees who wish to receive e-mail promotion from AdventureWorks, how many percent of them are female?
female refers to Gender = 'F'; employee who wish to receive email promotion refers to EmailPromotion = 1; percentage = DIVIDE(SUM(Gender = 'F')), (sum(Gender = 'F' or Gender = 'M'))) as percentage;
most review refers to MAX(count(comments)); high class refers to Class = 'H'; medium class refers to Class = 'M'; low class refers to Class = 'L'
Among the products from the mountain product line, how many of them are sold by over 2 vendors?
mountain product line refers to ProductLine = 'M'; sold by over 5 vendors refers to count(Name)>5
purchase orders refers to TransactionType = 'P'; first six months of 2012 refers to TransactionDate bewteen '2012-01-01'and '2012-06-30'; average = DIVIDE(ActualCost where TransactionType = 'P', count(TransactionID))
Among the products from the mountain product line, how many of them are sold by over 2 vendors?
mountain product line refers to ProductLine = 'M'; sold by over 5 vendors refers to count(Name)>5
low class refers to Class = 'L'; universal refers to Style = 'U'; road frame is a name of product subcategory; average profit = AVG(SUBTRACT(ListPrice, StandardCost);
Among the products from the mountain product line, how many of them are sold by over 2 vendors?
mountain product line refers to ProductLine = 'M'; sold by over 5 vendors refers to count(Name)>5
Catgo Transport 5 is a name of shipping method; OrderDate = '2011-12-14'; total shipment cost = SUM(Freight);
Among the products from the mountain product line, how many of them are sold by over 2 vendors?
mountain product line refers to ProductLine = 'M'; sold by over 5 vendors refers to count(Name)>5
percentage = DIVIDE(Culture.Name = 'Thai', count(ALL Culture.Name))*100%
Among the products from the mountain product line, how many of them are sold by over 2 vendors?
mountain product line refers to ProductLine = 'M'; sold by over 5 vendors refers to count(Name)>5
year of credit card expiration refers to ExpYear; ExpYear = 2007; store contact refers to PersonType = 'SC';
Among the products from the mountain product line, how many of them are sold by over 2 vendors?
mountain product line refers to ProductLine = 'M'; sold by over 5 vendors refers to count(Name)>5
profit = subtract(ListPrice, StandardCost); the depth the component from its parent refers to BOMLevel;
Among the products from the mountain product line, how many of them are sold by over 2 vendors?
mountain product line refers to ProductLine = 'M'; sold by over 5 vendors refers to count(Name)>5
least number of sick leave refers to min(SickLeaveHours); PayFrequency = 1 means ‘Salary received monthly’; PayFrequency = 2 means ‘Salary received biweekly';
Among the products from the mountain product line, how many of them are sold by over 2 vendors?
mountain product line refers to ProductLine = 'M'; sold by over 5 vendors refers to count(Name)>5
last receipt date is August 17, 2011 refers to LastReceiptDate> = '2011-08-17 00:00:00' and LastReceiptDate < '2011-08-18 00:00:00';
Among the products from the mountain product line, how many of them are sold by over 2 vendors?
mountain product line refers to ProductLine = 'M'; sold by over 5 vendors refers to count(Name)>5
Next-Door Bike Store is name of a store
Among the products from the mountain product line, how many of them are sold by over 2 vendors?
mountain product line refers to ProductLine = 'M'; sold by over 5 vendors refers to count(Name)>5
full name = FirstName+MiddleName+LastName; Production Technician - WC50 is a job title;
What is the percentage of employees who work the night shift?
percentage = DIVIDE(SUM(Name = 'Night')), (COUNT(ShiftID)) as percentage;
mountain product line refers to ProductLine = 'M'; sold by over 5 vendors refers to count(Name)>5
What is the percentage of employees who work the night shift?
percentage = DIVIDE(SUM(Name = 'Night')), (COUNT(ShiftID)) as percentage;
Stocked quantity refers to StockedQty
What is the percentage of employees who work the night shift?
percentage = DIVIDE(SUM(Name = 'Night')), (COUNT(ShiftID)) as percentage;
average age = AVG(subtract(year(now), year(HireDate)))
What is the percentage of employees who work the night shift?
percentage = DIVIDE(SUM(Name = 'Night')), (COUNT(ShiftID)) as percentage;
average profit = DIVIDE(SUM(SUBTRACT(ListPrice, StandardCost))), (COUNT(ProductSubcategoryID))));
What is the percentage of employees who work the night shift?
percentage = DIVIDE(SUM(Name = 'Night')), (COUNT(ShiftID)) as percentage;
shelves refer to shelf; down tube is a product
What is the percentage of employees who work the night shift?
percentage = DIVIDE(SUM(Name = 'Night')), (COUNT(ShiftID)) as percentage;
SP is an abbreviation for Sales Person; PersonType = 'SP';
What is the percentage of employees who work the night shift?
percentage = DIVIDE(SUM(Name = 'Night')), (COUNT(ShiftID)) as percentage;
hired in 2009 refers to year(HireDate) = 2009
What is the percentage of employees who work the night shift?
percentage = DIVIDE(SUM(Name = 'Night')), (COUNT(ShiftID)) as percentage;
Socks is a name of product subcategory
What is the percentage of employees who work the night shift?
percentage = DIVIDE(SUM(Name = 'Night')), (COUNT(ShiftID)) as percentage;
poor credit rating means bad credit; CreditRating = 5; Business number refers to BusinessEntityID
What is the percentage of employees who work the night shift?
percentage = DIVIDE(SUM(Name = 'Night')), (COUNT(ShiftID)) as percentage;
business number refers to BusinessEntityID where BusinessEntityID = 1496; how long does it take refers to AverageLeadTime
How many vacation hours do the male employees have on average?
employee refers to PersonType = 'EM'; Male refers to Gender = 'M'; Average = Divide( SUM(VacationHours(PersonType = 'EM'& Gender = 'M')),Count(BusinessEntityID(PersonType = 'EM' & Gender = 'M')));
business number refers to BusinessEntityID where BusinessEntityID = 1496; how long does it take refers to AverageLeadTime
How many vacation hours do the male employees have on average?
employee refers to PersonType = 'EM'; Male refers to Gender = 'M'; Average = Divide( SUM(VacationHours(PersonType = 'EM'& Gender = 'M')),Count(BusinessEntityID(PersonType = 'EM' & Gender = 'M')));
days to end a work order = SUBTRACT(ActualEndDate, ActualStartDate);
How many vacation hours do the male employees have on average?
employee refers to PersonType = 'EM'; Male refers to Gender = 'M'; Average = Divide( SUM(VacationHours(PersonType = 'EM'& Gender = 'M')),Count(BusinessEntityID(PersonType = 'EM' & Gender = 'M')));
type of credit card refers to CardType; CardType = 'Vista';
How many vacation hours do the male employees have on average?
employee refers to PersonType = 'EM'; Male refers to Gender = 'M'; Average = Divide( SUM(VacationHours(PersonType = 'EM'& Gender = 'M')),Count(BusinessEntityID(PersonType = 'EM' & Gender = 'M')));
Oldest employee refers to Max ( Subtract((now())-BirthDate));