Tutor profile: Natalie S.
Subject: SQL Programming
SQL questions are difficult to answer - These are more "how to code something like this" A basic question can be.... How do you join two tables? I have a table with invoices and a table with a clients information
SELECT invoices.invoice_number, client_name, day_bought FROM invoices JOIN clients ON invoices.invoice_number = clients.invoice_number
A card is drawn randomly from a deck of ordinary playing cards. You win $100 if the card is a spade or an ace. What is the probability that you will win the game?
First, note what we know: There are 52 cards in the deck. There are 13 spades, so P(S) = 13/52. There are 4 aces, so P(A) = 4/52. There is 1 ace that is also a spade, so P(S ∩ A) = 1/52. Using the rule of addition: P(S ∪ A) = P(S) + P(A) - P(S ∩ A) = 13/52 + 4/52 - 1/52 = 16/52 = 4/13
How do I solve 𝑥^2 + 2𝑥 + 4 = 4
To solve this equation, you are doing to want to use algebra and FOIL the formula. First, bring everything to one side: x^2 +2x +4 - 4 = 0 so, x^2 +2x = 0 You can see that x is a common factor in both values - so you can pull out an x x(x +2) = 0 Now, you make each of these equal to 0 x = 0 x+2 = 0 --> thus x = -2 Thus, x=0 and x= -2
needs and Natalie will reply soon.