Collection of database exam solutions

Størrelse: px
Starte visningen fra side:

Download "Collection of database exam solutions"

Transkript

1 Collection of database exam solutions Rasmus Pagh August 27, 2012 This is a supplement to the collection of database exams used in the course Introduction to Database Design, which includes answers. The idea is that it can be used to: Check your own solutions against. Get an impression of what is required for a written solution to be considered complete. In the solution for problem 1 of January 2006, the rounded arrow indicates a participation constraint (corresponding to a bold arrow in RG). 1

2 Introduction to Database Design IT University of Copenhagen January 3, 2012 The exam consists of 5 problems with 13 questions in total. It has 13 pages (including this page). It is recommended to read the problems in order, but it is not important that you solve them in any specific order. Your answer is supposed to fit on the problem sheet itself. If you need more space, or need to replace your answer, use ordinary paper (one question per sheet, clearly referenced on the problem sheet). The weight of each problem is stated. You have 4 hours to answer all questions. If you cannot give a complete answer to a question, try to give a partial answer. KBL refers to the course book Database Systems - an application approach, 2nd edition (Introductory Version), by Michael Kifer, Arthur Bernstein and Philip M. Lewis. All written aids are allowed. 1

3 1 Data modeling (30%) Consider the following SQL DDL schema: CREATE TABLE Country ( id INT PRIMARY KEY, name VARCHAR(50) ); CREATE TABLE Location ( locid INT, countryid INT NOT NULL REFERENCES Country(id), name VARCHAR(50), population INT, PRIMARY KEY (locid,countryid) ); CREATE TABLE Department ( id INT PRIMARY KEY, name VARCHAR(50), numberofemployees INT, location INT NOT NULL, country INT NOT NULL, manager INT, FOREIGN KEY (location,country) REFERENCES Location(locId,countryId), UNIQUE KEY (manager) ); CREATE TABLE Employee ( id INT, name VARCHAR(50), birthyear INT, boss INT REFERENCES Employees(id), worksat INT NOT NULL REFERENCES Department(id) ON DELETE CASCADE, PRIMARY KEY (id,worksat) ); CREATE TABLE Shipment ( fromdepartment INT REFERENCES Department(id), todepartment INT REFERENCES Department(id), date DATE, description VARCHAR(500), PRIMARY KEY (fromdepartment,todepartment,date) ); ALTER TABLE Department ADD FOREIGN KEY managerisindepartment (manager,id) REFERENCES Employee(id,worksAt); 2

4 a) Draw an ER diagram, using the notation from KBL, corresponding to the schema above. You should put emphasis on expressing as many constraints of the schema as possible in your ER diagram (e.g., primary, foreign key, and participation constraints), while not further restricting the data that is allowed. Draw your answer here: 3

5 b) Suppose that we want the database to store not just the current set of employees, the boss(es) of each employee, and where each employee works, but the history of employments. That is, it should be possible to ask a query that returns the contents of Employees and Department for a given time in the past. Describe a revised data model, using SQL DDL, that makes this possible, and briefly explain how it will be used. Primary and foreign key constraints should be specified. Write your answer here: Several solutions are possible. One is to keep the current schema to store the current data, and add relations to store historical data. We assume that the only changes to Department that we wish to record is change of manager, and that there is at most one such change per day. Similarly, we assume that for Employee we only wish to track changes to where they work, and who is their boss. This is achieved by the following relations: CREATE TABLE DepartmentManagers ( departmentid INT REFERENCES Department(id), from DATE, to DATE, managerid INT REFERENCES Employee(id), PRIMARY KEY (departmentid,from) ); CREATE TABLE EmployeeHistory ( employeeid INT REFERENCES Employee(id), from DATE, to DATE, bossid INT REFERENCES Employee(id), worksat INT REFERENCES Department(id), PRIMARY KEY (employeeid,from) ); 4

6 2 XML (25%) The below XML document contains part of a database using the schema of problem 1. The employees of each department are represented in a tree structure where the parent node of each employee node is the boss of that employee. <d:database xmlns:d=" <d:country name="denmark"> <d:location id="23" population="100000"> <d:department id="2301"> <d:name>superone Ørestad</d:name> <d:employee id="42" name="aaron Aardwark"> <d:employee id="43" name="chris Cat"/> <d:employee id="44" name="dolly Dove"/> </d:employee> </d:department> <d:department id="2302"> <d:name>superone Dragør</d:name> <d:employee id="52" name="edwin Eagle"> <d:employee id="53" name="frank Fish"> <d:employee id="54" name="garth Gorilla"/> </d:employee> </d:employee> </d:department> </d:location> <d:location id="27"> <d:department id="2701"> <d:name>superone Grindsted</d:name> <d:employee id="62" name="harry Horse"/> </d:department> </d:location> </d:country> <d:country name="iceland"> <d:location id="31" population="120000"> <d:department id="3101"> <d:name>superone Kringlan</d:name> <d:employee id="44" name="dolly Dove"/> </d:department> </d:location> </d:country> </d:database> 5

7 a) Write the results of running the following XPath queries on the document above //country//name/string() 3. Aardwark"]/descendant::employee Write your answer here: 1. Denmark Iceland 2. SuperOne Ørestad SuperOne Dragør SuperOne Grindsted SuperOne Kringlan 3. <employee id= 43 name= Chris Cat /> <employee id= 44 name= Dolly Dove /> <employee id= 53 name= Frank Fish > <employee id= 54 name= Garth Gorilla /> </employee>

8 The following is an unfinished XML Schema for an XML language that is supposed to include the XML document above: <schema xmlns=" xmlns:d=" targetnamespace=" elementformdefault="qualified"> <element name="database"> <complextype> <sequence> <element ref="*** 1 ***" maxoccurs="200"/> </sequence> </complextype> </element> <element name="country"> <complextype> <sequence> <element ref="d:location" *** 2 ***/> </sequence> <attribute name="name" type="string" use="required"/> </complextype> </element> <element name="location"> <complextype> <sequence> <element ref="d:department" minoccurs="0" maxoccurs="unbounded"/> </sequence> <attribute name="id" use="required"/> *** 3 *** </complextype> </element> <element name="department"> <complextype> <sequence> <element name="name" type="string"/> <element name="employee" type="d:employee_with_subordinates"/> </sequence> <attribute name="id" type="integer"/> </complextype> </element> <complextype name="employee_with_subordinates"> <sequence> *** 4 *** </sequence> <attribute name="id" type="integer"/> <attribute name="name" type="string"/> </complextype> </schema> 7

9 b) Suggest ways to fill in the parts marked by *** 1 ***, *** 2 ***, *** 3 ***, and *** 4 ***. Your schema should accept the XML document above, and similar documents extracted from the database of Problem 1. You do not need to introduce attributes that are mentioned in Problem 1 but not used in the XML document. Write your answer here: 1. d:country 2. maxoccurs= unbounded 3. <attribute name= population type= integer use= optional /> (the default value of use is optional, so this could be omitted). 4. <element name= employee type= d:employee_with_subordinates minoccurs= 0 maxoccurs= unbounded /> c) Write an XQuery expression that finds all employees that work in more than one department. For each such employee, the query should return his/her id, and the ids of the locations in which he/she works. For example, when run on the XML document above it should return <employee id= 44 >23 31</employee>. You may want to use the functions fn:distinct-values and fn:count. Refer to the document as doc( hierarchy.xml ). Write your answer here: let $ids := doc( hierarchy.xml )//employee/@id/string() for $id in fn:distinct-values($ids) where fn:count($ids[. eq $id])>1 return <employee id= {$id} > {doc( hierarchy.xml )//location[.//employee[@id eq $id]]/@id/string()} </employee> 8

10 3 SQL (25 %) We now consider queries on a database using the schema given in problem 1 (without your modifications). a) Write a query that returns the name of each Location, and the name of the country where this location lies (referenced using countryid). Write your answer here: SELECT C.name, L.name FROM Country C, Location L WHERE C.id=L.countryId; b) Write a query that returns, for each country, the number of departments in that country with more than 10 employees (numberofemployees). Write your answer here: SELECT C.name, COUNT(*) FROM Country C, Department D WHERE C.id=D.country AND numberofemployees>10 GROUP BY C.name; c) Write one or more SQL statements that remove from Department all departments that did not receive a shipment, as recorded in Shipment(toDepartment). Make sure to remove further information as needed to preserve referential integrity. 9

11 Write your answer here: It is assumed that references in Shipments to departments that are deleted should be set to NULL. ALTER TABLE ADD CONSTRAINT FOREIGN KEY (fromdepartment) REFERENCES Department(id) ON DELETE SET NULL; DELETE FROM Department WHERE id NOT IN (SELECT todepartment FROM Shipment) Employees working in a deleted department will automatically be deleted due to ON DELETE CASCADE of the foreign key. We next consider the following queries: A. SELECT sum(population) FROM Department D, Location L WHERE D.location=L.locId AND D.country=L.countryId; B. SELECT sum(distinct population) FROM Department D, Location L WHERE D.location=L.locId AND D.country=L.countryId; C. SELECT sum(population) FROM Location WHERE (locid,countryid) IN (SELECT location, country FROM Department); d) Indicate for each of the following statements if it is true or false: 1. A and B always return the same result. 2. B and C always return the same result. 3. One of of A, B, and C has a correlated subquery. 4. One of the queries computes the total population in locations where there is at least one department. 5. One of the queries computes the total population in all countries. A correct answer suffices to get full points, but you are welcome to add brief explanations of your answers. 10

12 Write your answer here: 1. False. A counts the population multiplied by the number of departments. 2. False. They may differ if two locations have the same population. 3. False. The only subquery is not correlated. 4. True. This is query C. 5. False. None of them counts the population in locations with no departments. e) Write an SQL query that lists all departments where no employee has a birth year before the birth year of the manager. Write your answer here: SELECT D.id, D.name FROM Department D, Employee E WHERE D.manager = E.id and D.id = E.worksAt and E.birthyear <= (SELECT min(birthyear) FROM Employee E2 WHERE E2.worksAt=D.id) or without a correlated subquery: SELECT D.id, D.name FROM Department D, Employee E, (SELECT worksat,min(birthyear) AS minb FROM Employee GROUP BY worksat) M WHERE D.manager = E.id and D.id = M.worksAt and E.birthyear <= minb; 4 Normalization (10%) Consider the relation Employee from problem 1. The attribute id uniquely identifies a person, but is not a key for the relation. a) Give a brief and convincing argument that Employee is not in 3rd normal form (3NF). 11

13 Write your answer here: Since id determines a person, we have the functional dependency id name birthyear. Since id is not a key, this violates 3NF (and even BCNF). b) Perform a decomposition of Employee into 3NF. It suffices to write the attributes of the final relations, with key attributes underlined. Write your answer here: Person(id, name, birthyear) Employment(personId,departmentId,boss) 5 Indexing (10 %) Consider the following queries on the schema given in problem 1: 1. SELECT id FROM Department WHERE numberofemployees > 10; 2. SELECT name FROM Department WHERE numberofemployees > 10; 3. SELECT id FROM Department WHERE country = 45 AND numberofemployees > 10; 4. SELECT boss FROM Employee WHERE name LIKE Ra% ; 5. SELECT * FROM Department D, Employee E WHERE D.manager = E.id AND D.id = E.worksAt; We assume that the DBMS has not automatically created indexes on the primary keys of the relations Department and Employee. The following are potential secondary indexes: A. CREATE INDEX A ON Department(id,name,numberOfEmployees) B. CREATE INDEX B ON Department(numberOfEmployees,country,id) C. CREATE INDEX C ON Employee(id,name) D. CREATE INDEX D ON Employee(birthyear,id,worksAt) 12

14 a) Among all combinations of an index and a query, indicate with a + those that match, i.e., where a DBMS might access the index to answer the given query, and with a - those that do not match. While not needed to get full points, you are welcome to explain your choices. Write your answer here: Query Index A Index B Index C Index D

15 Data Storage and Formats IT Universitety of Copenhagen January 5, 2009 This exam is a translation, by Michael Magling, of an original Danish language exam. It consists of 6 problems with a total of 15 questions. The weight of each problem is stated. You have 4 hours to answer all questions. The complete assignment consists of 11 pages (including this page). It is recommended to read the problems in order, but it is not important to solve them in order. If you cannot give a complete answer to a question, try to give a partial answer. The pages in the answer must be ordered and numbered, and be supplied with name, CPR-number and course code (BDLF). Write only on the front of sheets, and order them so that the problems appear in the correct order. KBL refers to the set in the course book Database Systems - an application approach, 2nd edition, by Michael Kifer, Arthur Bernstein and Philip M. Lewis. All written aids are allowed. 1

16 1 Data modeling (25%) Micro loans are small loans, which is beginning to gain popularity especially among borrowers in developing countries. The idea is to bring venture lenders together using information technology. Typically, the loans will be used to finance startup or development of the borrower s company, so that there is a realistic chance for repayment. The money in a loan can, unlike traditional loans, come from many lenders. In this problem, you must create an E-R model that describes the information necessary to manage micro loans. The following information form the basis for creating the model: Each borrower and lender must be registered with information about name and address. A loan starts with a loan request, which contains information about when the loan should at latest be granted, The total amount being discussed (US-dollars), and how long the payback period is. Also, a description is included of how the money will be used. The rent on the payment is calculated in the loan amount, which is to say, the full amount is not paid. Lenders can commit to an optional portion of the total amount of a loan request. When the commitments for the loan request covers the requested amount, the request is converted to a loan. If not enough commitments can be reached, the loan request is cancelled. A borrower can have more than one request, and more than one loan at a time, but can at most make one request per day. The loan is paid through an intermediary, typically a local department of a charity, who has a name and an address. The borrower chooses when he or she will make a payment. Every payment must be registered in the database with an amount and a date (at most one payment per loan per day). The lenders share the repayment based on how large a part of the loan they are responsible for. If the loan is not repaid before the agreed upon deadline, a new date is agreed. The database must not delete the old deadline, but save the history (the deadline can be overridden multiple times). Each lender can for each burrower save a trust, which is a number between 0 and 100 that determines the lender s evaluation of the risk of lending money to that person. The number must only be saved for the borrowers, for whom there has been made such an evaluation. 2

17 a) Make an E-R model for the data described above. If you make any assumptions about data that doesn t show from the problem, they must be described. Use the E-R notation from KBL. Put an emphasis on having the model express as many properties about the data as possible, for instance participation constraints. Example answer: b) Make a relational data model for micro loans: Describe at least two of the relations using SQL DDL (make reasonable assumptions about data types), and state the relation schemas for the other relations. The emphasis is if there is a correlation between the relational model and the E-R diagram from a), along with primary key and foreign key constrations being stated for all relation. It is not necessary to state CHECK constraints and the like. Example answer: It is assumed, that borrowers, lenders, and intermediaries are disjoint entities. Below MySQLs ENUM type is used, which is not part of the syllabus. CREATE TABLE Adressee ( 3

18 id INT PRIMARY KEY, type ENUM( borrower, lender, intermediary ), name VARCHAR(50), address VARCHAR(50) ); CREATE TABLE Trust ( borrower INT REFERENCES Adressee(id), lender INT REFERENCES Adressee(id), percentage INT, PRIMARY KEY (borrower,lender) ); CREATE TABLE LoanRequest ( id INT REFERENCES Adressee(id), date DATE, amount INT, description VARCHAR(1000), payday DATE, deadline DATE, PRIMARY KEY (id,date) ); CREATE TABLE Commitment ( lender INT REFERENCES Adressee(id), borrower INT, loanrequestdate DATE, FOREIGN KEY (borrower,loanrequestdate) REFERENCES LoanRequest(id,dato), amount INT, PRIMARY KEY (lender, borrower, loanrequestdate,amount) ); CREATE TABLE Loan ( id INT, RequestDate DATE, date DATE, intermediary REFERENCES Adressee(id), FOREIGN KEY (id,requestdate) REFERENCES LoanRequest(id,date), PRIMARY KEY(date,id,RequestDate) ); CREATE TABLE Repayment ( id INT, date DATE, RequestDate DATE, 4

19 amount INT, FOREIGN KEY (id,requestdate) REFERENCES LoanRequest(id,date), PRIMARY KEY (date,id,requestdate) ); CREATE TABLE Deadline ( id INT, agreeddate DATE, RequestDate DATE, deadline DATE, FOREIGN KEY (id,requestdate) REFERENCES LoanRequest(id,date), PRIMARY KEY (agreeddate,id,requestdate) ); 2 XML (20%) Consider the following XML document, loaners.xml: <?xml version="1.0" encoding="iso "?> <?xml-stylesheet href="mystylesheet.xsl" type="text/xsl"?> <microloans> <loaner> <name> <first>nandela</first> <last>melson</last> </name> <address>freedom Way 1, Johannesburg, South Africa</address> <loan> <amount>1000</amount> <payout-date> </payout-date> <repayment amount="100" date=" "/> <repayment amount="100" date=" "/> </loan> <loan> <amount>500</amount> <payout-date> </payout-date> <repayment amount="100" date=" "/> </loan> </loaner> <loaner> <name> <first>majeev</first> <last>rotwani</last> </name> 5

20 <address>circle Strait 8, Bumbai, India</address> </loaner> </microloans> a) Write an XPath expression that returns all of the name (name elements) in loaners.xml. Emphasis is on if the expression also works on other, similar, XML documents. Example answer: //name b) Write an XPath expression that returns all the names of borrowers, who have (had) at least one loan, which is to say, where there is a loan element. Emphasis is on if the expression also works on other, similar, XML documents. Example answer: //loaner[loan]/name Consider the following XSL stylesheet, mystylesheet.xsl: <?xml version="1.0" encoding="iso "?> <xsl:stylesheet version="1.0" xmlns:xsl=" <xsl:template match="microloans"> <html> <body> <xsl:apply-templates select="//loan"/> </body> </html> </xsl:template> <xsl:template match="loan"> <xsl:apply-templates select="../name/last"/>, <xsl:apply-templates select="../name/first"/>: <xsl:apply-templates select="amount"/><br/> </xsl:template> </xsl:stylesheet> c) State the result of running mystylesheet.xsl on loaners.xml. Example answer: <html> <body> Melson, Nandela: 1000<br/> 6

21 Melson, Nandela: 500<br/> </body> </html> d) Write an XQuery expression that for each borrower in loaners.xml computes the total amount, which is to say the sum of the numbers in the amount elements, minus the sum of the numbers in the repayment attribute of the repayment elements. The output must be valid XML that for each borrower states name and outstanding amount (in a debt element). Example answer: <loaners> { for $x in doc("loaners.xml")//loaner return <loaner> {$x/name} <debt> {fn:sum($x/loan/amount) - fn:sum($x/loan/repayment/@amount)} </debt> </loaner> } </loaners> 7

22 3 Normalization (10%) The following relation schema can be used to register information on the repayments on micro loans (see the text in the problem 1 for the explanation on micro loans, and the example on data about micro loans in problem 2). Repayment(borrower_id,name,address,loanamount,requestdate,repayment_date,request_amount) A borrower is identified with an unique borrower_id, and has only one address. Borrowers can have multiple simultaneous loans, but they always have different request dates. The borrower can make multiple repayments on the same day, but not more than one repayment per loan per day. a) State a key (candidate key) for Repayment. Example answer: {borrower_id,requestdate,repayment_date} b) Make the normalization to BCNF. State for every step in the normalization, which functional dependency that causes it. Example answer: Functional dependencies: borrower_id name address borrower_id requestdato loanamount BCNF: Repayment1(borrower_id,name,address) Repayment2(borrower_id,requestdate,loanamount) Repayment3(borrower_id,requestdate,repayment_date,repayment_amount) 4 SQL (25 %) This problem is about writing SQL for the relation Repayment from problem 3: Repayment(borrower_id,name,address,loanamount,requestdate,repayment_date,repayment_amount) To solve the problem, the information from the description in problem 3 must be used. a) Write an SQL request that returns all the tuples with information on repayments from the borrower with id equal to 42, and where the lent amount exceeds 1000 USD. Example answer: SELECT * FROM Repayment WHERE borrower_id=42 AND loanamount>1000; 8

23 b) Write an SQL request that for each address finds the total repaid amount for the address. Example answer: SELECT address, SUM(repayment_amount) FROM Repayment GROUP BY address; c) Write an SQL request that finds all names which has a unique address, which to say is where there does not exist a tuple with a different name and same address. Example answer: SELECT name FROM Repayment A WHERE 1= (SELECT COUNT(DISTINCT name) FROM Repayment B WHERE A.address=B.address); d) Write an SQL command, which deletes all information on ended loans, which is to say loans where the total repaid amount equals the lend amount. Example answer: DELETE FROM Repayment A WHERE loanamount= (SELECT SUM(repayment_amount) FROM Repayment B WHERE B.borrower_id=A.borrower_id AND B.requestdate=A.requestdate); 9

24 5 Transactions (10 %) Consider the following transactions, which uses explicit locking of tuples. Here?1,?2,?3,?4 is used to reference parameters that are substituted in. 1. SET TRANSACTION ISOLATION LEVEL READ COMMITTED; SELECT * FROM R WHERE id=?1 FOR UPDATE; SELECT * FROM S WHERE pk=?2 FOR UPDATE; UPDATE R SET a=?3 WHERE id=?1; UPDATE S SET b=?4 WHERE pk=?2; COMMIT; 2. SET TRANSACTION ISOLATION LEVEL READ COMMITTED; SELECT * FROM S WHERE pk=?1 FOR UPDATE; SELECT * FROM R WHERE id=?2 FOR UPDATE; UPDATE S SET d=?3 WHERE pk=?1; UPDATE R SET c=?4 WHERE id=?2; COMMIT; a) Argue that there is a possibility for deadlocks, if the two transactions are run at the same time. State a specific sequence of locks, that leads to a deadlock. Example answer: If the two transactions both locks the same tuples in R of S deadlocks are created for instance in the situation where transaction 1 locks R, and transaction 2 after that locks S. b) Suggest a change of the transactions, so deadlocks can no longer be created, and give a short argument that this is in fact the case. Emphasis is on that the transactions keep their original effect. Example answer: By changing the order of the rowlocks in one of the transaction, the problem is avoided (the two transactions locks in the same order, and as asuch, deadlocks cannot be created). 10

25 6 Indexing (10%) We again look at the relation Repayment from problem 3 (un-normalized). Assume that the following four SQL commands are known to be frequent (with actual parameters substituted in for?): 1. SELECT DISTINCT name, address FROM Repayment WHERE borrower_id =?; 2. SELECT * FROM Repayment WHERE borrower_id =? AND repayment_date >?; 3. SELECT borrower_id, loanamount FROM Repayment WHERE loanamount BETWEEN? AND?; 4. INSERT INTO Request VALUES (?,?,?,?,?,?,?); a) Suggest one or more indexes, taking into account of the above. State the indexed attributes for each index, along with the index type (primary or secondary). Argue shortly for your choices. Emphasis is on the suggested indexes supports the SQL commands as effectively as possible. Example answer: Primary index (B-tree) on borrower_id, repayment_date (used with 1 and 2). Secondary index (B-tree) on loanamount, borrower_id (covering index from request 3). 11

26 Databasesystemer IT Universitetet i København 8. juni 2006 Eksamenssættet består af 5 opgaver med 16 spørgsmål, fordelt på 10 sider (inklusiv denne side), samt et svarark, hvorpå visse spørgsmål skal besvares. Vægten af hver opgave er angivet. Du har 4 timer til at besvare alle spørgsmål. Hvis du ikke er i stand til at give et fuldt svar på et spørgsmål, så prøv at give et delvist svar. Du kan vælge at skrive på engelsk eller dansk (evt. med engelske termer). Siderne i besvarelsen skal være numererede, og forsynet med navn, CPR nummer og kursuskode (DBS). Skriv kun på forsiden af arkene, og sortér dem inden numereringen, så opgaverne forekommer i nummerrækkefølge. MDM refererer i sættet til kursusbogen Modern Database Management 7th edition af Jeffery A. Hoffer, Mary B. Prescott and Fred R. McFadden. Alle skriftlige hjælpemidler er tilladt. 1

27 1 Datamodellering (35%) Betragt nedenstående EER diagram, der modellerer data om landsholdsfodbold: Trænere (COACH), fanklubber (FAN CLUB), kampe (MATCH), mesterskaber (CHAMPIONSHIP) og spillere (PLAYER). For trænere modelleres data om, hvem der assisterer hvem (Assists). For spillere modelleres data om, hvilket ligahold (LEAGUE TEAM) de har kontrakt med (Contract with). Visse landshold er ungdomslandshold (YOUTH TEAM). For fanklubber modelleres data om medlemmer, og hvem der er formand (president). For hver kamp modelleres data om hvilke spillere, som var med (Plays), og hvornår de blev skiftet ind og ud (starttime og endtime). Hvis hele kampen spilles, er værdierne af disse attributter henholdsvis 0 og 90. 2

28 a) Indikér for hvert af følgende udsagn hvorvidt det stemmer overens med EER diagrammet. (Bemærk at diagrammet ikke nødvendigvis er en eksakt modellering af virkeligheden.) Brug svararket til dine svar sæt præcis ét X i hver søjle. 1. Et landshold har altid mindst 1 træner. 2. En trænerassistent kan selv have en assistent. 3. En spiller har højst kontrakt med 1 ligahold. 4. En spiller kan deltage i kampe for mere end 1 land. 5. En spiller kan blive skiftet ind flere gange i en kamp, og således have flere starttider. 6. Et ungdomshold kan spille med i et mesterskap. 7. Der kan være 20 spillere på banen for hvert hold i en kamp. 8. Der kan findes to fanklubber med samme navn. Svar: Spørgsmål 1.a Stemmer med EER X X X X X X Stemmer ikke med EER X X b) Konvertér EER diagrammet til relationer. I forbindelse med konvertering af 1-tilmange relationships skal du bruge den metode, der giver det mindste antal relationer. Din besvarelse skal angive skemaerne for de resulterende relationer, med attributterne i primærnøglen understreget. Svar: COACH(id, name, salary, assists, nationalteamid) LEAGUETEAM(name,country) PLAYER(id,name,contractwithName,contractwithCountry) NATIONALTEAM(id,sex,country) MATCH(id,result,championshipName,championshipYear) FANCLUB(name,nationalteamId,president) YOUTHTEAM(nationalteamId,agelimit) CHAMPIONSHIP(name,year,location) Plays(playerId,nationalteamId,matchId,startTime,endTime) FanClubMembers(name,nationalteamId,member) EER diagrammet modellerer ikke historiske data om spilleres karriere (hvilke hold, de har spillet for, i hvilke perioder, og til hvilken løn). Desuden vil en spillende træner svare 3

29 til en instans af COACH entiteten såvel som PLAYER entiteten, uden nogen information om, at der er tale om samme person. Der ønskes en ny datamodel, hvor disse restriktioner ikke gælder. Desuden ønskes det, at datamodellen skal gøre det muligt ikke blot at registrere kampens resultat, men også de vigtigste hændelser i løbet af en kamp: Scoringer (hvem målscoreren er, og i hvilket minut scoringen er lavet). Straffespark (hvilket minut, hvem der begik straffesparket, og mod hvem). Advarsler og udvisninger (hvem og hvornår). Udskiftninger og indskiftninger som i det nuværende EER diagram. c) Lav en revideret EER model, der tager højde for de beskrevne ønsker. De dele af EER diagrammet, der ikke ændres, kan evt. udelades. Der lægges vægt på, at datamodellen let skal kunne tilpasses ønsker til mere detaljeret information. Supplér om nødvendigt dit diagram med forklarende tekst. Svar: 4

30 Forklaring: Alle hændelser er abstraheret til match events, inklusive ind- og udskiftninger af spillere. Et straffespark registreres som to hændelser (at det bliver begået, og at det bliver dømt). Det er valgt at lade en contract være mellem en person og et ligahold, da dette muliggør at gemme information om træneres kontrakter med ligahold (og det ville ikke være en simplere løsning ikke at tillade dette). 2 Normalisering (15%) Betragt en relation med skemaet: Varesalg(forhandler,producent,produkt,omsætning). Følgende er en gyldig instans af Varesalg: forhandler producent produkt omsætning Silman SoftFloor AG Velour Bjarnes Tæpper Bøgetæpper Berber Top Tæpper Bøgetæpper Kashmir Silman SoftFloor AG Berber Bjarnes Tæpper Bøgetæpper Valnød a) Hvilke af følgende potentielle FDer gælder ikke, baseret på ovenstående instans? 1. omsætning produkt 2. omsætning produkt forhandler 3. produkt producent 4. producent produkt 5. forhandler produkt omsætning Hvis instansen ikke siger noget om en FD, markeres den som måske FD. Brug svararket til dit svar sæt præcis ét X i hver søjle.. Svar: Spørgsmål 2.a Ikke FD X X Måske FD X X X Bemærk, at instansen ovenfor kan fås ved natural join af følgende relationer: forhandler Silman Bjarnes Tæpper Top Tæpper producent SoftFloor AB Bøgetæpper Bøgetæpper forhandler produkt omsætning Silman Velour Bjarnes Tæpper Berber Top Tæpper Kashmir Silman Berber Bjarnes Tæpper Valnød

31 b) Angiv en funktionel afhængighed (FD), der sikrer at Varesalg kan opsplittes som i ovenstående eksempel uden tab af information. FDen skal med andre ord sikre, at SQL sætningen (SELECT forhandler, producent FROM Varesalg) NATURAL JOIN (SELECT forhandler, produkt, omsætning FROM Varesalg) altid returnerer en relation, der er identisk med Varesalg. Forklar endvidere i ord, hvad FDen udtrykker. Svar: FDen forhandler producent skal gælde. (FDen forhandler produkt omsætning rækker også, men gælder ikke ifølge den viste instans.) FDen udtrykker, at enhver forhandler kun har produkter fra een producent. c) Angiv en instans af Varesalg, hvor den viste opsplitning går galt, dvs. hvor SQL sætningen i spørgsmål b) ikke returnerer den samme instans. Svar: forhandler producent produkt omsætning Bjarnes Tæpper Bøgetæpper Berber Bjarnes Tæpper SoftFloor AG Velour SQL (30 %) Betragt relationerne fan(id,navn,cprnr,indmeldelse,favorit) og spiller(id,navn,land), og instanser med følgende data: id navn cprnr indmeldelse favorit 1 Birger Hansen Mads Mikkelsen Jens Green Hans Westergaard Christian Lund Jesper Andersen Betina Jørgensen id navn land 1 Peter Ijeh Nigeria 2 Marcus Allbäck Sverige 3 Martin Bernburg Danmark 4 Jesper Christiansen Danmark 5 Michael Gravgaard Danmark 6

32 Relationerne indeholder data om medlemmerne i en fanklub, og deres favoritspillere. a) Hvor mange tupler returneres der fra hver af følgende forespørgsler, hvis de køres på ovenstående instanser? 1. SELECT * FROM fan WHERE indmeldelse = 2003; 2. SELECT * FROM fan WHERE indmeldelse >= 2000 AND favorit <> 5; 3. SELECT COUNT(*), indmeldelse FROM fan GROUP BY indmeldelse; 4. SELECT * FROM fan WHERE navn LIKE Hans% ; 5. SELECT R1.navn, R2.navn FROM fan R1, fan R2 WHERE R1.favorit = R2.favorit and R1.id < R2.id; 6. SELECT navn FROM fan R1 WHERE (select count(*) FROM fan R2 WHERE R2.favorit=R1.favorit) > 1; 7. SELECT navn FROM fan WHERE favorit NOT IN (SELECT id FROM spiller WHERE land= Danmark ); Brug svararket til dine svar. Svar: Spørgsmål 3.a Antal tupler b) Skriv en SQL-kommando der, for alle tupler i relationen fan hvor cprnr er større end eller mindre end , sætter cprnr til værdien NULL. Svar: UPDATE fan SET cprnr = NULL WHERE cprnr > OR cprnr < ; c) Skriv en SQL-kommando der sletter alle tupler i fan hvor cprnr har værdien NULL. Svar: DELETE fan WHERE cprnr = NULL; d) Skriv en SQL forespørgsel der for hver medlem i fanklubben viser medlemmets navn (fan) og navn på medlemmets favorit (spiller). Svar: SELECT fan.navn,spiller.navn FROM fan,spiller WHERE fan.favorit=spiller.id; 7

33 e) Skriv en SQL forespørgel der beregner gennemsnittet af kolonnen indmeldelse i relationen fan. Svar: SELECT AVG(indmeldelse) FROM fan; f) Definér i SQL et view der for hver medlem i fanklubben viser medlemmets navn (fan) og navn på medlemmets favorit (spiller). Brug dit view til at udregne hvor mange fans de forskellige spillere har (spillerens navn skal fremgå). Svar: CREATE VIEW MyView AS SELECT fan.navn AS fannavn, spiller.navn AS spillernavn FROM fan,spiller WHERE fan.favorit=spiller.id; (Omdøbningen er nødvendigt i Oracle for at undgå at flere attributer har samme navn. En besvarelse uden omdøbning er også korrekt.) Brug af viewet: SELECT spillernavn,count(*) FROM MyView GROUP BY spillernavn; g) Skriv en SQL forespørgsel der returnerer en relation med én attribut indeholdende alle navne i fan og spiller. Du kan antage, at datatyperne for navn attributterne er identiske. Svar: (SELECT navn FROM spiller) UNION ALL (SELECT navn FROM fan); h) Skriv en SQL forespørgsel der returnerer navnene på alle spillere, der har flere fans blandt kvindelige end blandt mandlige fans. En person i fan er mand hvis udtrykkket cprnr % 2 = 1 er sandt, og kvinde hvis cprnr % 2 = 0. Svar: SELECT navn FROM spiller s WHERE (SELECT COUNT(*) FROM fan f WHERE f.favorit = s.id AND cprnr % 2 = 1) < (SELECT COUNT(*) FROM fan f WHERE f.favorit = s.id AND cprnr % 2 = 0); 4 Transaktioner (10 %) Betragt to databaseforbindelser, der laver opdateringer og forespørgsler på relationen MyFan(id, navn): 8

34 Forbindelse 1 Forbindelse 2 INSERT INTO MyFan VALUES (3, Bent Ølgård ); INSERT INTO MyFan VALUES (7, Birger Hansen ); INSERT INTO MyFan VALUES (5, Birger Hansen ); SELECT * FROM MyFan; (1) COMMIT; DELETE FROM MyFan; SELECT * FROM MyFan; (2) ROLLBACK; SELECT * FROM MyFan; (3) a) Antag at MyFan ikke indeholder nogen tupler, at transaktionerne kører på isoleringsniveau READ COMMITED, og at de enkelte SQL kommandoer sendes til DBMSen i den rækkefølge, der er vist ovenfor. Hvilke tupler returneres af hver af de 3 SELECT statements? Svar: (1) (7, Birger Hansen ) (2) (3, Bent Ølgård ) og (5, Birger Hansen ) (3) (3, Bent Ølgård ) og (5, Birger Hansen ). 5 Constraints (10%) Antag at relationerne fan og spiller er oprettet uden nogen form for constraint og at tabllerne indeholder de data der er vist i opgave 3. Vi tilføjer nu constraints til tabellerne med følgende kommandoer: ALTER TABLE spiller ADD CONSTRAINT MyFirstConstraint PRIMARY KEY (id); ALTER TABLE fan ADD CONSTRAINT MySecondConstraint FOREIGN KEY (favorit) REFERENCES spiller(id); ALTER TABLE fan ADD CONSTRAINT MyThirdConstraint UNIQUE (cprnr); 9

35 a) Angiv for hver af følgende kommandoer hvilke af de tre ovenstående constraints (om nogen)der brydes, dvs. giver anledning til en fejlmeddelelse. 1. DELETE FROM spiller WHERE land= Sverige ; 2. INSERT INTO spiller VALUES (6, Michael Gravgaard, Danmark ); 3. UPDATE fan SET cprnr= where navn LIKE %Hans% ; 4. INSERT INTO fan VALUES (7, Hans Metz,NULL,2001,7); 5. UPDATE fan set favorit=null where navn LIKE %e% ; Brug svararket til dit svar. Skriv plus (+) for at markere en brudt constraint, og minus (-) for at markere en constraint, der ikke brydes. Hvis du er i tvivl om et svar, kan du skrive et spørgsmålstegn. Svar: Spørgsmål 5.a MyFirstConstraint MySecondConstraint MyThirdConstraint

36 Svarark (afleveres) Navn CPR Sidenummer Totalt sidetal Instruktioner. I spørgsmål 1.a og 2.a skal du sætte præcis ét X i hver søjle. I spørgsmål 3.a skal du skrive 7 heltal. I spørgsmål 5.a skal du markere svarene med + og -. Hvis du er i tvivl kan du angive et spørgsmålstegn. Bemærk at retningen vil blive gjort på en måde, så tilfældige svar ikke betaler sig. For eksempel vil to korrekte svar og et forkert svar give det samme antal point som ét korrekt svar og to spørgsmålstegn. Det er tilstrækkeligt at give korrekte svar for at få maksimumpoint, men hvis du vælger at forklare dine svar vil dette blive taget i betragtning ved retningen. Spørgsmål 1.a Stemmer med EER Stemmer ikke med EER? Spørgsmål 2.a Ikke FD Måske FD? Spørgsmål 3.a Antal tupler Spørgsmål 5.a MyFirstConstraint MySecondConstraint MyThirdConstraint 11

37 Introduction to Databases IT University of Copenhagen January 16, 2006 This exam consists of 5 problems with a total of 16 questions. The weight of each problem is stated. You have 4 hours to answer all 16 questions. The complete assignment consists of 12 numbered pages (including this page), plus an answer sheet to be used for several of the questions. If you cannot give a complete answer to a question, try to give a partial answer. You may choose to write your answer in Danish or English. Write only on the front of sheets, and remember to write your CPR-number on each page. Please start your answer to each question at the top of a new page. Please order and number the pages before handing in. GUW refers to Database Systems The Complete Book by Hector Garcia-Molina, Je Ullman, and Jennifer Widom, All written aids are allowed / Alle skriftlige hjælpemidler er tilladt. 1

38 1 Database design (25%) The academic world is an interesting example of international cooperation and exchange. This problem is concerned with modeling of a database that contains information on researchers, academic institutions, and collaborations among researchers. A researcher can either be employed as a professor or a lab assistant. There are three kinds of professors: Assistant, associate, and full professors. The following should be stored: For each researcher, his/her name, year of birth, and current position (if any). For each institution, its name, country, and inauguration year. For each institution, the names of its schools (e.g. School of Law, School of Business, School of Computer Science,... ). A school belongs to exactly one institution. An employment history, including information on all employments (start and end date, position, and what school). Information about co-authorships, i.e., which researchers have co-authered a research paper. The titles of common research papers should also be stored. For each researcher, information on his/her highest degree (BSc, MSc or PhD), including who was the main supervisor, and at what school. For each professor, information on what research projects (title, start date, and end date) he/she is involved in, and the total amount of grant money for which he/she was the main applicant. a) Draw an E/R diagram for the data set described above. Make sure to indicate all cardinality constraints specified above. The E/R diagram should not contain redundant entity sets, relationships, or attributes. Also, use relationships whenever appropriate. If you need to make any assumptions, include them in your answer. Answer: See next page. 2

39

40 b) Convert your E/R diagram from question a) into relations, and write SQL statements to create the relations. You may make any reasonable choice of data types. Remember to include any constraints that follow from the description of the data set or your E/R diagram, including primary key and foreign key constraints. Answer: CREATE TABLE Researcher ( ID int PRIMARY KEY, name VARCHAR(50), birth INT ); CREATE TABLE Professor ( ID int REFERENCES Researcher(ID), grants INT ); CREATE TABLE Paper ( ID int PRIMARY KEY, title VARCHAR(50) ); CREATE TABLE Position ( researcherid int REFERENCES Researcher(ID), start DATE, end DATE, schoolname VARCHAR(50), institutionname VARCHAR(50), FOREIGN KEY (schoolname,institutionname) REFERENCES School(name,insitutionName), PRIMARY KEY (researcherid,start,schoolname,institutionname) ); CREATE TABLE Project ( ID int PRIMARY KEY, title VARCHAR(50), start DATE, end DATE ); CREATE TABLE School ( name VARCHAR(50), instititionname VARCHAR(50) REFERENCES Institution(name), PRIMARY KEY (name, instititionname) ); 4

41 CREATE TABLE Institution ( name VARCHAR(50), country VARCHAR(50), year INT, PRIMARY KEY (name, country) ); CREATE TABLE Author ( researcherid INT REFERENCES Researcher(ID), paperid INT REFERENCES Paper(ID), PRIMARY KEY (researcherid, paperid) ); CREATE TABLE PartOf ( professorid INT REFERENCES Professor(ID), studentid INT REFERENCES Researcher(ID), PRIMARY KEY (professorid, projectid) ); CREATE TABLE HighDegree ( professorid INT REFERENCES Professor(ID), projectid INT REFERENCES Project(ID), schoolname VARCHAR(50), institutionname VARCHAR(50), FOREIGN KEY (schoolname,institutionname) REFERENCES School(name,insitutionName), PRIMARY KEY (professorid, studentid, schoolname, institutionname) ); 5

42 2 Normalization (15%) We consider the following relation: Articles(ID,title,journal,issue,year,startpage,endpage,TR-ID) It contains information on articles published in scientific journals. Each article has a unique ID, a title, and information on where to find it (name of journal, what issue, and on which pages). Also, if results of an article previously appeared in a technical report (TR), the ID of this technical report can be specified. We have the following information on the attributes: For each journal, an issue with a given number is published in a single year. The endpage of an article is never smaller than the startpage. There is never (part of) more than one article on a single page. The following is an instance of the relation: ID title journal issue year startpage endpage TR-ID 42 Cuckoo Hashing JAlg Deterministic Dictionaries JAlg Deterministic Dictionaries JAlg Dictionaries in less space SICOMP P vs NP resolved JACM What Gödel missed SICOMP What Gödel missed Nature a) Based on the above, indicate for each of the following sets of attributes whether it is a key for Articles or not. Use the answer sheet of the exam for your answer. 1. {ID}; 2. {ID,TR-ID}; 3. {ID,title,TR-ID} 4. {title}; 5. {title,year}; 6. {startpage,journal,issue} If you wish, you may additionally write a brief explanation for each answer, which will be taken into account, but is not necessary to get full points. Answer: # Key X Not a key X X X X X b) Based on the above, indicate for each of the following potential functional dependencies, whether it is indeed an FD or not. Use the answer sheet of the exam for your answer. 1. ID! title; 2. startpage! endpage; 3. journal issue! year 4. title! ID; 5. ID! startpage endpage journal issue; 6. TR-ID! ID If you wish, you may additionally write a brief explanation for each answer, which will be taken into account, but is not necessary to get full points. 6

43 Answer: # FD X X X Not an FD X X X c) Based on a) and b), perform normalization into BCNF, and state the resulting relations. Answer: All FDs above are avoidable (by question a), so we decompose according to: journal issue! year ID! title journal issue startpage endpage This gives the following relations: Articles1(journal,issue,year) Articles2(ID,title,journal,issue,startpage,endpage) Articles3(ID,TR-ID) 7

44 3 SQL and relational algebra (35%) We consider again the relation Articles from problem 2. a) Indicate for each of the following expressions whether it is a valid SQL statement or not. A valid statement, as described in GUW, should be accepted by a standard SQL interpreter, whereas an invalid statement should result in an error message. Use the answer sheet of the exam for your answer. 1. SELECT * FROM Articles WHERE endpage-startpage>10; 2. SELECT * FROM Articles WHERE endpage-startpage<0; 3. SELECT SUM(title) FROM Articles; 4. SELECT AVG(year) FROM Articles WHERE title LIKE 'C%'; 5. SELECT COUNT(*) FROM Articles GROUP BY year; 6. SELECT year,count(*) FROM Articles WHERE COUNT(*)>10 GROUP BY year; Answer: # Valid X X X X Invalid X X b) Indicate for each of the following queries, how many tuples would be returned if it was run on the instance of Articles from problem 2. Use the answer sheet of the exam for your answer. 1. SELECT ID FROM Articles WHERE year<2006; 2. SELECT DISTINCT ID FROM Articles WHERE year<2006; 3. SELECT AVG(year) FROM Articles GROUP BY journal; 4. SELECT ID FROM Articles WHERE title LIKE '%d'; Answer: # Number of tuples Consider the relations Authors(auID,name) and Authoring(articleID,authorID), containing information on names of authors, and who is authoring which papers, respectively. c) Write an SQL query that returns for each article, its ID, title and the number of authors. Answer: SELECT ID, title, COUNT(*) FROM Articles, Authoring WHERE ID=articleID GROUP BY ID,title; d) Write an SQL query that returns the titles of articles authored by 'Robert Tarjan'. Answer: 8

45 SELECT title FROM Articles, Authors, Authoring WHERE ID=articleID AND auid=authorid AND name='robert Tarjan'; e) Write an SQL query that returns the number of co-authors of 'Robert Tarjan'. (I.e., the number of authors who have written at least one article together with him.) Answer: SELECT COUNT(DISTINCT A2.authorID) FROM Authors, Authoring A1, Authoring A2 WHERE A1.authorID=auID AND name='robert Tarjan' AND A2.authorID<>auID AND A1.articleID=A2.articleID; f) Write SQL statements that correspond to the following two relational algebra expressions. Duplicate elimination should be performed. 1. title,year ( year=2005 (Articles)) 2. year,count(id)(articles) Answer: 1. SELECT DISTINCT title, authorid FROM Articles WHERE year=2005; 2. SELECT year,count(id) FROM Articles GROUP BY year; 9

46 4 E ciency and transactions (15%) Consider the following six queries on Articles from problem 2: 1. SELECT title FROM Articles WHERE year=2005; 2. SELECT title FROM Articles WHERE endpage=100; 3. SELECT title FROM Articles WHERE year>1995 AND year<2000; 4. SELECT title FROM Articles WHERE journal='jacm' AND issue=55; 5. SELECT title FROM Articles WHERE issue=55 AND journal='jacm'; 6. SELECT title FROM Articles WHERE endpage-startpage>50; a) Indicate which of the above queries would likely be faster (based on the knowledge you have from the course), if all of the following indexes were created. Use the answer sheet of the exam for your answer. CREATE INDEX Idx1 ON Articles(year,startpage); CREATE INDEX Idx2 ON Articles(startpage,endpage); CREATE INDEX Idx3 ON Articles(journal,issue,year); Answer: # Faster X X X X Same X X In the following we consider the below transactions on the Authors(auID,name) relation. Time User A User B 1 INSERT INTO Authors VALUES (42,'Donald Knuth'); 2 INSERT INTO Authors VALUES (43,'Guy Threepwood'); 3 DELETE FROM Authors WHERE name LIKE 'Don%'; 4 INSERT INTO Authors VALUES (44,'Donald E. Knuth'); 5 DELETE FROM Authors WHERE name LIKE 'Guy%'; 6 COMMIT; 7 COMMIT; b) Suppose that Authors is initially empty, that the transactions are run at isolation level READ COMMITTED, and that the commands are issued in the order indicated above. What is the content of Authors after the execution? Answer: auid name 42 Donald Knuth 43 Guy Threepwood 44 Donald E. Knuth c) Suppose that Authors is initially empty. What are the possible contents of Authors after each serial execution of the two transactions? Answer: auid name 43 Guy Threepwood 44 Donald E. Knuth 10

47 auid name 44 Donald E. Knuth 42 Donald Knuth 11

48 5 Constraints (10%) Suppose that the Authoring relation of problem 3 relation was created as follows: CREATE TABLE Authoring( articleid INT REFERENCES Article(ID) ON DELETE SET NULL, authorid INT REFERENCES Author(ID) ON DELETE CASCADE ) a) Indicate which of the following statements are true, and which are not. Use the answer sheet of the exam for your answer. 1. If we try to delete a tuple from Authoring, the tuple is not deleted. Instead, articleid is set to NULL. 2. If we delete a tuple from Authoring, any tuples in Author referred to by this tuple are also deleted. 3. If we delete a tuple from Article, some attributes of Authoring may have their values set to NULL. 4. If we try to insert a tuple into Author, with an ID that is not referred to in Authoring, the operation is rejected. 5. If we try to insert a tuple into Authoring, with an ID that does not exist in Author, the operation is rejected. Answer: # True X X False X X X b) Write CHECK constraints for Articles of Problem 2 that ensure the following: 1. Values of the journal attribute does not start with 'Journal'. 2. The value of the endpage attribute is never smaller than that of startpage. 3. The value of year is given in full (e.g is not abbreviated as 99). You may assume that year is of type integer, and that there are no articles more than 200 years old. Answer: 1. CHECK NOT (journal LIKE 'Journal%'); 2. CHECK endpage>=startpage; 3. CHECK year>=1000; 12

Databasesystemer. IT Universitetet i København 8. juni 2006

Databasesystemer. IT Universitetet i København 8. juni 2006 Databasesystemer IT Universitetet i København 8. juni 2006 Eksamenssættet består af 5 opgaver med 16 spørgsmål, fordelt på 7 sider (inklusiv denne side), samt et svarark, hvorpå visse spørgsmål skal besvares.

Læs mere

Databasesystemer. IT Universitetet i København 16. januar 2006

Databasesystemer. IT Universitetet i København 16. januar 2006 Databasesystemer IT Universitetet i København 16. januar 2006 Eksamenssættet består af 5 opgaver med 16 spørgsmål, fordelt på 6 sider (inklusiv denne side), samt et svarark, hvor visse spørgsmål skal besvares.

Læs mere

Databasesystemer. IT Universitetet i København 8. juni 2006

Databasesystemer. IT Universitetet i København 8. juni 2006 Databasesystemer IT Universitetet i København 8. juni 2006 Eksamenssættet består af 5 opgaver med 16 spørgsmål, fordelt på 10 sider (inklusiv denne side), samt et svarark, hvorpå visse spørgsmål skal besvares.

Læs mere

Portal Registration. Check Junk Mail for activation . 1 Click the hyperlink to take you back to the portal to confirm your registration

Portal Registration. Check Junk Mail for activation  . 1 Click the hyperlink to take you back to the portal to confirm your registration Portal Registration Step 1 Provide the necessary information to create your user. Note: First Name, Last Name and Email have to match exactly to your profile in the Membership system. Step 2 Click on the

Læs mere

Databasesystemer. IT Universitetet i København 7. juni 2005

Databasesystemer. IT Universitetet i København 7. juni 2005 Databasesystemer IT Universitetet i København 7. juni 2005 Eksamenssættet består af 5 opgaver med 13 spørgsmål, fordelt på 6 sider (inklusiv denne side). Vægten af hver opgave er angivet. Du har 4 timer

Læs mere

Skriftlig Eksamen Kombinatorik, Sandsynlighed og Randomiserede Algoritmer (DM528)

Skriftlig Eksamen Kombinatorik, Sandsynlighed og Randomiserede Algoritmer (DM528) Skriftlig Eksamen Kombinatorik, Sandsynlighed og Randomiserede Algoritmer (DM58) Institut for Matematik og Datalogi Syddansk Universitet, Odense Torsdag den 1. januar 01 kl. 9 13 Alle sædvanlige hjælpemidler

Læs mere

Basic statistics for experimental medical researchers

Basic statistics for experimental medical researchers Basic statistics for experimental medical researchers Sample size calculations September 15th 2016 Christian Pipper Department of public health (IFSV) Faculty of Health and Medicinal Science (SUND) E-mail:

Læs mere

Skriftlig Eksamen Beregnelighed (DM517)

Skriftlig Eksamen Beregnelighed (DM517) Skriftlig Eksamen Beregnelighed (DM517) Institut for Matematik & Datalogi Syddansk Universitet Mandag den 7 Januar 2008, kl. 9 13 Alle sædvanlige hjælpemidler (lærebøger, notater etc.) samt brug af lommeregner

Læs mere

Skriftlig Eksamen Beregnelighed (DM517)

Skriftlig Eksamen Beregnelighed (DM517) Skriftlig Eksamen Beregnelighed (DM517) Institut for Matematik & Datalogi Syddansk Universitet Mandag den 31 Oktober 2011, kl. 9 13 Alle sædvanlige hjælpemidler (lærebøger, notater etc.) samt brug af lommeregner

Læs mere

Engelsk. Niveau D. De Merkantile Erhvervsuddannelser September Casebaseret eksamen. og

Engelsk. Niveau D. De Merkantile Erhvervsuddannelser September Casebaseret eksamen.  og 052431_EngelskD 08/09/05 13:29 Side 1 De Merkantile Erhvervsuddannelser September 2005 Side 1 af 4 sider Casebaseret eksamen Engelsk Niveau D www.jysk.dk og www.jysk.com Indhold: Opgave 1 Presentation

Læs mere

Database. lv/

Database. lv/ Database 1 Database Design Begreber 1 Database: En fælles samling af logiske relaterede data (informationer) DBMS (database management system) Et SW system der gør det muligt at definer, oprette og vedligeholde

Læs mere

GUIDE TIL BREVSKRIVNING

GUIDE TIL BREVSKRIVNING GUIDE TIL BREVSKRIVNING APPELBREVE Formålet med at skrive et appelbrev er at få modtageren til at overholde menneskerettighederne. Det er en god idé at lægge vægt på modtagerens forpligtelser over for

Læs mere

Unitel EDI MT940 June 2010. Based on: SWIFT Standards - Category 9 MT940 Customer Statement Message (January 2004)

Unitel EDI MT940 June 2010. Based on: SWIFT Standards - Category 9 MT940 Customer Statement Message (January 2004) Unitel EDI MT940 June 2010 Based on: SWIFT Standards - Category 9 MT940 Customer Statement Message (January 2004) Contents 1. Introduction...3 2. General...3 3. Description of the MT940 message...3 3.1.

Læs mere

Project Step 7. Behavioral modeling of a dual ported register set. 1/8/ L11 Project Step 5 Copyright Joanne DeGroat, ECE, OSU 1

Project Step 7. Behavioral modeling of a dual ported register set. 1/8/ L11 Project Step 5 Copyright Joanne DeGroat, ECE, OSU 1 Project Step 7 Behavioral modeling of a dual ported register set. Copyright 2006 - Joanne DeGroat, ECE, OSU 1 The register set Register set specifications 16 dual ported registers each with 16- bit words

Læs mere

IBM Network Station Manager. esuite 1.5 / NSM Integration. IBM Network Computer Division. tdc - 02/08/99 lotusnsm.prz Page 1

IBM Network Station Manager. esuite 1.5 / NSM Integration. IBM Network Computer Division. tdc - 02/08/99 lotusnsm.prz Page 1 IBM Network Station Manager esuite 1.5 / NSM Integration IBM Network Computer Division tdc - 02/08/99 lotusnsm.prz Page 1 New esuite Settings in NSM The Lotus esuite Workplace administration option is

Læs mere

Engelsk. Niveau C. De Merkantile Erhvervsuddannelser September 2005. Casebaseret eksamen. www.jysk.dk og www.jysk.com.

Engelsk. Niveau C. De Merkantile Erhvervsuddannelser September 2005. Casebaseret eksamen. www.jysk.dk og www.jysk.com. 052430_EngelskC 08/09/05 13:29 Side 1 De Merkantile Erhvervsuddannelser September 2005 Side 1 af 4 sider Casebaseret eksamen Engelsk Niveau C www.jysk.dk og www.jysk.com Indhold: Opgave 1 Presentation

Læs mere

Skriftlig Eksamen Diskret matematik med anvendelser (DM72)

Skriftlig Eksamen Diskret matematik med anvendelser (DM72) Skriftlig Eksamen Diskret matematik med anvendelser (DM72) Institut for Matematik & Datalogi Syddansk Universitet, Odense Onsdag den 18. januar 2006 Alle sædvanlige hjælpemidler (lærebøger, notater etc.),

Læs mere

Vina Nguyen HSSP July 13, 2008

Vina Nguyen HSSP July 13, 2008 Vina Nguyen HSSP July 13, 2008 1 What does it mean if sets A, B, C are a partition of set D? 2 How do you calculate P(A B) using the formula for conditional probability? 3 What is the difference between

Læs mere

Black Jack --- Review. Spring 2012

Black Jack --- Review. Spring 2012 Black Jack --- Review Spring 2012 Simulation Simulation can solve real-world problems by modeling realworld processes to provide otherwise unobtainable information. Computer simulation is used to predict

Læs mere

Vores mange brugere på musskema.dk er rigtig gode til at komme med kvalificerede ønsker og behov.

Vores mange brugere på musskema.dk er rigtig gode til at komme med kvalificerede ønsker og behov. På dansk/in Danish: Aarhus d. 10. januar 2013/ the 10 th of January 2013 Kære alle Chefer i MUS-regi! Vores mange brugere på musskema.dk er rigtig gode til at komme med kvalificerede ønsker og behov. Og

Læs mere

The X Factor. Målgruppe. Læringsmål. Introduktion til læreren klasse & ungdomsuddannelser Engelskundervisningen

The X Factor. Målgruppe. Læringsmål. Introduktion til læreren klasse & ungdomsuddannelser Engelskundervisningen The X Factor Målgruppe 7-10 klasse & ungdomsuddannelser Engelskundervisningen Læringsmål Eleven kan give sammenhængende fremstillinger på basis af indhentede informationer Eleven har viden om at søge og

Læs mere

User Manual for LTC IGNOU

User Manual for LTC IGNOU User Manual for LTC IGNOU 1 LTC (Leave Travel Concession) Navigation: Portal Launch HCM Application Self Service LTC Self Service 1. LTC Advance/Intimation Navigation: Launch HCM Application Self Service

Læs mere

Aarhus Universitet, Science and Technology, Computer Science. Exam. Wednesday 27 June 2018, 9:00-11:00

Aarhus Universitet, Science and Technology, Computer Science. Exam. Wednesday 27 June 2018, 9:00-11:00 Page 1/12 Aarhus Universitet, Science and Technology, Computer Science Exam Wednesday 27 June 2018, 9:00-11:00 Allowed aid: None The exam questions are answered on the problem statement that is handed

Læs mere

University of Copenhagen Faculty of Science Written Exam - 3. April Algebra 3

University of Copenhagen Faculty of Science Written Exam - 3. April Algebra 3 University of Copenhagen Faculty of Science Written Exam - 3. April 2009 Algebra 3 This exam contains 5 exercises which are to be solved in 3 hours. The exercises are posed in an English and in a Danish

Læs mere

Privat-, statslig- eller regional institution m.v. Andet Added Bekaempelsesudfoerende: string No Label: Bekæmpelsesudførende

Privat-, statslig- eller regional institution m.v. Andet Added Bekaempelsesudfoerende: string No Label: Bekæmpelsesudførende Changes for Rottedatabasen Web Service The coming version of Rottedatabasen Web Service will have several changes some of them breaking for the exposed methods. These changes and the business logic behind

Læs mere

CHAPTER 8: USING OBJECTS

CHAPTER 8: USING OBJECTS Ruby: Philosophy & Implementation CHAPTER 8: USING OBJECTS Introduction to Computer Science Using Ruby Ruby is the latest in the family of Object Oriented Programming Languages As such, its designer studied

Læs mere

Financial Literacy among 5-7 years old children

Financial Literacy among 5-7 years old children Financial Literacy among 5-7 years old children -based on a market research survey among the parents in Denmark, Sweden, Norway, Finland, Northern Ireland and Republic of Ireland Page 1 Purpose of the

Læs mere

Danish Language Course for International University Students Copenhagen, 12 July 1 August Application form

Danish Language Course for International University Students Copenhagen, 12 July 1 August Application form Danish Language Course for International University Students Copenhagen, 12 July 1 August 2017 Application form Must be completed on the computer in Danish or English All fields are mandatory PERSONLIGE

Læs mere

To the reader: Information regarding this document

To the reader: Information regarding this document To the reader: Information regarding this document All text to be shown to respondents in this study is going to be in Danish. The Danish version of the text (the one, respondents are going to see) appears

Læs mere

Danish Language Course for Foreign University Students Copenhagen, 13 July 2 August 2016 Advanced, medium and beginner s level.

Danish Language Course for Foreign University Students Copenhagen, 13 July 2 August 2016 Advanced, medium and beginner s level. Danish Language Course for Foreign University Students Copenhagen, 13 July 2 August 2016 Advanced, medium and beginner s level Application form Must be completed on the computer in Danish or English All

Læs mere

On the complexity of drawing trees nicely: corrigendum

On the complexity of drawing trees nicely: corrigendum Acta Informatica 40, 603 607 (2004) Digital Object Identifier (DOI) 10.1007/s00236-004-0138-y On the complexity of drawing trees nicely: corrigendum Thorsten Akkerman, Christoph Buchheim, Michael Jünger,

Læs mere

Appendix 1: Interview guide Maria og Kristian Lundgaard-Karlshøj, Ausumgaard

Appendix 1: Interview guide Maria og Kristian Lundgaard-Karlshøj, Ausumgaard Appendix 1: Interview guide Maria og Kristian Lundgaard-Karlshøj, Ausumgaard Fortæl om Ausumgaard s historie Der er hele tiden snak om værdier, men hvad er det for nogle værdier? uddyb forklar definer

Læs mere

Aktivering af Survey funktionalitet

Aktivering af Survey funktionalitet Surveys i REDCap REDCap gør det muligt at eksponere ét eller flere instrumenter som et survey (spørgeskema) som derefter kan udfyldes direkte af patienten eller forsøgspersonen over internettet. Dette

Læs mere

Datalagring og formater

Datalagring og formater Datalagring og formater IT Universitetet i København 4. januar 2011 Eksamenssættet består af 6 opgaver med 15 spørgsmål, fordelt på 11 sider (inklusiv denne side). Det anbefales at læse opgaverne i rækkefølge,

Læs mere

Søren Løbner (lobner) ddb Databaser 2007 10 10

Søren Løbner (lobner) ddb Databaser 2007 10 10 ddb Excercise Week 4 Fra relationships til relations Nu når vi har fået vores skemaer på plads, kan SQL udtrykkene til konstruktion af relationerne laves Det foregår ved at vi tager en 1 til 1 oversættelse

Læs mere

RoE timestamp and presentation time in past

RoE timestamp and presentation time in past RoE timestamp and presentation time in past Jouni Korhonen Broadcom Ltd. 5/26/2016 9 June 2016 IEEE 1904 Access Networks Working Group, Hørsholm, Denmark 1 Background RoE 2:24:6 timestamp was recently

Læs mere

DET KONGELIGE BIBLIOTEK NATIONALBIBLIOTEK OG KØBENHAVNS UNIVERSITETS- BIBLIOTEK. Index

DET KONGELIGE BIBLIOTEK NATIONALBIBLIOTEK OG KØBENHAVNS UNIVERSITETS- BIBLIOTEK. Index DET KONGELIGE Index Download driver... 2 Find the Windows 7 version.... 2 Download the Windows Vista driver.... 4 Extract driver... 5 Windows Vista installation of a printer.... 7 Side 1 af 12 DET KONGELIGE

Læs mere

Brug sømbrættet til at lave sjove figurer. Lav fx: Få de andre til at gætte, hvad du har lavet. Use the nail board to make funny shapes.

Brug sømbrættet til at lave sjove figurer. Lav fx: Få de andre til at gætte, hvad du har lavet. Use the nail board to make funny shapes. Brug sømbrættet til at lave sjove figurer. Lav f: Et dannebrogsflag Et hus med tag, vinduer og dør En fugl En bil En blomst Få de andre til at gætte, hvad du har lavet. Use the nail board to make funn

Læs mere

Userguide. NN Markedsdata. for. Microsoft Dynamics CRM 2011. v. 1.0

Userguide. NN Markedsdata. for. Microsoft Dynamics CRM 2011. v. 1.0 Userguide NN Markedsdata for Microsoft Dynamics CRM 2011 v. 1.0 NN Markedsdata www. Introduction Navne & Numre Web Services for Microsoft Dynamics CRM hereafter termed NN-DynCRM enable integration to Microsoft

Læs mere

How Long Is an Hour? Family Note HOME LINK 8 2

How Long Is an Hour? Family Note HOME LINK 8 2 8 2 How Long Is an Hour? The concept of passing time is difficult for young children. Hours, minutes, and seconds are confusing; children usually do not have a good sense of how long each time interval

Læs mere

Application form for access to data and biological samples Ref. no

Application form for access to data and biological samples Ref. no Application form for access to data and biological samples Ref. 2016-02 Project title: Applicant: Other partners taking part in the project Names and work addresses: "Skilsmisse og selvvurderet mentalt

Læs mere

Titel: Hungry - Fedtbjerget

Titel: Hungry - Fedtbjerget Titel: Hungry - Fedtbjerget Tema: fedme, kærlighed, relationer Fag: Engelsk Målgruppe: 8.-10.kl. Data om læremidlet: Tv-udsendelse: TV0000006275 25 min. DR Undervisning 29-01-2001 Denne pædagogiske vejledning

Læs mere

Trolling Master Bornholm 2016 Nyhedsbrev nr. 8

Trolling Master Bornholm 2016 Nyhedsbrev nr. 8 Trolling Master Bornholm 2016 Nyhedsbrev nr. 8 English version further down Der bliver landet fisk men ikke mange Her er det Johnny Nielsen, Søløven, fra Tejn, som i denne uge fangede 13,0 kg nord for

Læs mere

Vejledning til Sundhedsprocenten og Sundhedstjek

Vejledning til Sundhedsprocenten og Sundhedstjek English version below Vejledning til Sundhedsprocenten og Sundhedstjek Udfyld Sundhedsprocenten Sæt mål og lav en handlingsplan Book tid til Sundhedstjek Log ind på www.falckhealthcare.dk/novo Har du problemer

Læs mere

Eksempel på eksamensspørgsmål til caseeksamen

Eksempel på eksamensspørgsmål til caseeksamen Eksempel på eksamensspørgsmål til caseeksamen Engelsk niveau E, TIVOLI 2004/2005: in a British traveller s magazine. Make an advertisement presenting Tivoli as an amusement park. In your advertisement,

Læs mere

PARALLELIZATION OF ATTILA SIMULATOR WITH OPENMP MIGUEL ÁNGEL MARTÍNEZ DEL AMOR MINIPROJECT OF TDT24 NTNU

PARALLELIZATION OF ATTILA SIMULATOR WITH OPENMP MIGUEL ÁNGEL MARTÍNEZ DEL AMOR MINIPROJECT OF TDT24 NTNU PARALLELIZATION OF ATTILA SIMULATOR WITH OPENMP MIGUEL ÁNGEL MARTÍNEZ DEL AMOR MINIPROJECT OF TDT24 NTNU OUTLINE INEFFICIENCY OF ATTILA WAYS TO PARALLELIZE LOW COMPATIBILITY IN THE COMPILATION A SOLUTION

Læs mere

Reexam questions in Statistics and Evidence-based medicine, august sem. Medis/Medicin, Modul 2.4.

Reexam questions in Statistics and Evidence-based medicine, august sem. Medis/Medicin, Modul 2.4. Reexam questions in Statistics and Evidence-based medicine, august 2013 2. sem. Medis/Medicin, Modul 2.4. Statistics : ESSAY-TYPE QUESTION 1. Intelligence tests are constructed such that the average score

Læs mere

Masters Thesis - registration form Kandidatafhandling registreringsformular

Masters Thesis - registration form Kandidatafhandling registreringsformular Masters Thesis - registration form Kandidatafhandling registreringsformular Godkendelse af emne for hovedopgave af vejleder og undervisningskoordinator. Læs venligst retningslinjerne sidst i dette dokument

Læs mere

United Nations Secretariat Procurement Division

United Nations Secretariat Procurement Division United Nations Secretariat Procurement Division Vendor Registration Overview Higher Standards, Better Solutions The United Nations Global Marketplace (UNGM) Why Register? On-line registration Free of charge

Læs mere

DK - Quick Text Translation. HEYYER Net Promoter System Magento extension

DK - Quick Text Translation. HEYYER Net Promoter System Magento extension DK - Quick Text Translation HEYYER Net Promoter System Magento extension Version 1.0 15-11-2013 HEYYER / Email Templates Invitation Email Template Invitation Email English Dansk Title Invitation Email

Læs mere

Læs venligst Beboer information om projekt vandskade - sikring i 2015/2016

Læs venligst Beboer information om projekt vandskade - sikring i 2015/2016 Læs venligst Beboer information om projekt vandskade - sikring i 2015/2016 Vi er nødsaget til at få adgang til din lejlighed!! Hvis Kridahl (VVS firma) har bedt om adgang til din/jeres lejlighed og nøgler,

Læs mere

ArbejsskadeAnmeldelse

ArbejsskadeAnmeldelse ArbejsskadeAnmeldelse OpretAnmeldelse 001 All Klassifikations: KlassifikationKode is an unknown value in the current Klassifikation 002 All Klassifikations: KlassifikationKode does not correspond to KlassifikationTekst

Læs mere

The River Underground, Additional Work

The River Underground, Additional Work 39 (104) The River Underground, Additional Work The River Underground Crosswords Across 1 Another word for "hard to cope with", "unendurable", "insufferable" (10) 5 Another word for "think", "believe",

Læs mere

LESSON NOTES Extensive Reading in Danish for Intermediate Learners #8 How to Interview

LESSON NOTES Extensive Reading in Danish for Intermediate Learners #8 How to Interview LESSON NOTES Extensive Reading in Danish for Intermediate Learners #8 How to Interview CONTENTS 2 Danish 5 English # 8 COPYRIGHT 2019 INNOVATIVE LANGUAGE LEARNING. ALL RIGHTS RESERVED. DANISH 1. SÅDAN

Læs mere

E-PAD Bluetooth hængelås E-PAD Bluetooth padlock E-PAD Bluetooth Vorhängeschloss

E-PAD Bluetooth hængelås E-PAD Bluetooth padlock E-PAD Bluetooth Vorhängeschloss E-PAD Bluetooth hængelås E-PAD Bluetooth padlock E-PAD Bluetooth Vorhängeschloss Brugervejledning (side 2-6) Userguide (page 7-11) Bedienungsanleitung 1 - Hvordan forbinder du din E-PAD hængelås med din

Læs mere

Trolling Master Bornholm 2015

Trolling Master Bornholm 2015 Trolling Master Bornholm 2015 (English version further down) Sæsonen er ved at komme i omdrejninger. Her er det John Eriksen fra Nexø med 95 cm og en kontrolleret vægt på 11,8 kg fanget på østkysten af

Læs mere

Shooting tethered med Canon EOS-D i Capture One Pro. Shooting tethered i Capture One Pro 6.4 & 7.0 på MAC OS-X 10.7.5 & 10.8

Shooting tethered med Canon EOS-D i Capture One Pro. Shooting tethered i Capture One Pro 6.4 & 7.0 på MAC OS-X 10.7.5 & 10.8 Shooting tethered med Canon EOS-D i Capture One Pro Shooting tethered i Capture One Pro 6.4 & 7.0 på MAC OS-X 10.7.5 & 10.8 For Canon EOS-D ejere der fotograferer Shooting tethered med EOS-Utility eller

Læs mere

how to save excel as pdf

how to save excel as pdf 1 how to save excel as pdf This guide will show you how to save your Excel workbook as PDF files. Before you do so, you may want to copy several sheets from several documents into one document. To do so,

Læs mere

Bookingmuligheder for professionelle brugere i Dansehallerne 2015-16

Bookingmuligheder for professionelle brugere i Dansehallerne 2015-16 Bookingmuligheder for professionelle brugere i Dansehallerne 2015-16 Modtager man økonomisk støtte til et danseprojekt, har en premieredato og er professionel bruger af Dansehallerne har man mulighed for

Læs mere

Boligsøgning / Search for accommodation!

Boligsøgning / Search for accommodation! Boligsøgning / Search for accommodation! For at guide dig frem til den rigtige vejledning, skal du lige svare på et par spørgsmål: To make sure you are using the correct guide for applying you must answer

Læs mere

ATEX direktivet. Vedligeholdelse af ATEX certifikater mv. Steen Christensen stec@teknologisk.dk www.atexdirektivet.

ATEX direktivet. Vedligeholdelse af ATEX certifikater mv. Steen Christensen stec@teknologisk.dk www.atexdirektivet. ATEX direktivet Vedligeholdelse af ATEX certifikater mv. Steen Christensen stec@teknologisk.dk www.atexdirektivet.dk tlf: 7220 2693 Vedligeholdelse af Certifikater / tekniske dossier / overensstemmelseserklæringen.

Læs mere

Business Opening. Very formal, recipient has a special title that must be used in place of their name

Business Opening. Very formal, recipient has a special title that must be used in place of their name - Opening English Danish Dear Mr. President, Kære Hr. Direktør, Very formal, recipient has a special title that must be used in place of their name Dear Sir, Formal, male recipient, name unknown Dear Madam,

Læs mere

University of Copenhagen Faculty of Science Written Exam April Algebra 3

University of Copenhagen Faculty of Science Written Exam April Algebra 3 University of Copenhagen Faculty of Science Written Exam - 16. April 2010 Algebra This exam contains 5 exercises which are to be solved in hours. The exercises are posed in an English and in a Danish version.

Læs mere

IBM WebSphere Operational Decision Management

IBM WebSphere Operational Decision Management IBM WebSphere Operational Decision Management 8 0 29., WebSphere Operational Decision Management 8, 0, 0. Copyright IBM Corporation 2008, 2012. ........... 1 :......... 1 1: Decision Center....... 3 1

Læs mere

Statistik for MPH: 7

Statistik for MPH: 7 Statistik for MPH: 7 3. november 2011 www.biostat.ku.dk/~pka/mph11 Attributable risk, bestemmelse af stikprøvestørrelse (Silva: 333-365, 381-383) Per Kragh Andersen 1 Fra den 6. uges statistikundervisning:

Læs mere

Handout 1: Eksamensspørgsmål

Handout 1: Eksamensspørgsmål Handout 1: Eksamensspørgsmål Denne vejledning er udfærdiget på grundlag af Peter Bakkers vejledning til jeres eksamensspørgsmål. Hvis der skulle forekomme afvigelser fra Peter Bakkers vejledning, er det

Læs mere

Resource types R 1 1, R 2 2,..., R m CPU cycles, memory space, files, I/O devices Each resource type R i has W i instances.

Resource types R 1 1, R 2 2,..., R m CPU cycles, memory space, files, I/O devices Each resource type R i has W i instances. System Model Resource types R 1 1, R 2 2,..., R m CPU cycles, memory space, files, I/O devices Each resource type R i has W i instances. Each process utilizes a resource as follows: request use e.g., request

Læs mere

Trolling Master Bornholm 2015

Trolling Master Bornholm 2015 Trolling Master Bornholm 2015 (English version further down) Panorama billede fra starten den første dag i 2014 Michael Koldtoft fra Trolling Centrum har brugt lidt tid på at arbejde med billederne fra

Læs mere

CS 4390/5387 SOFTWARE V&V LECTURE 5 BLACK-BOX TESTING - 2

CS 4390/5387 SOFTWARE V&V LECTURE 5 BLACK-BOX TESTING - 2 1 CS 4390/5387 SOFTWARE V&V LECTURE 5 BLACK-BOX TESTING - 2 Outline 2 HW Solution Exercise (Equivalence Class Testing) Exercise (Decision Table Testing) Pairwise Testing Exercise (Pairwise Testing) 1 Homework

Læs mere

Sport for the elderly

Sport for the elderly Sport for the elderly - Teenagers of the future Play the Game 2013 Aarhus, 29 October 2013 Ditte Toft Danish Institute for Sports Studies +45 3266 1037 ditte.toft@idan.dk A growing group in the population

Læs mere

Business Opening. Very formal, recipient has a special title that must be used in place of their name

Business Opening. Very formal, recipient has a special title that must be used in place of their name - Opening Danish English Kære Hr. Direktør, Dear Mr. President, Very formal, recipient has a special title that must be used in place of their name Kære Hr., Formal, male recipient, name unknown Kære Fru.,

Læs mere

Skriftlig Eksamen Automatteori og Beregnelighed (DM17)

Skriftlig Eksamen Automatteori og Beregnelighed (DM17) Skriftlig Eksamen Automatteori og Beregnelighed (DM17) Institut for Matematik & Datalogi Syddansk Universitet Odense Campus Lørdag, den 15. Januar 2005 Alle sædvanlige hjælpemidler (lærebøger, notater

Læs mere

Titel: Barry s Bespoke Bakery

Titel: Barry s Bespoke Bakery Titel: Tema: Kærlighed, kager, relationer Fag: Engelsk Målgruppe: 8.-10.kl. Data om læremidlet: Tv-udsendelse: SVT2, 03-08-2014, 10 min. Denne pædagogiske vejledning indeholder ideer til arbejdet med tema

Læs mere

1 What is the connection between Lee Harvey Oswald and Russia? Write down three facts from his file.

1 What is the connection between Lee Harvey Oswald and Russia? Write down three facts from his file. Lee Harvey Oswald 1 Lee Harvey Oswald s profile Read Oswald s profile. Answer the questions. 1 What is the connection between Lee Harvey Oswald and Russia? Write down three facts from his file. 2 Oswald

Læs mere

Fejlbeskeder i SMDB. Business Rules Fejlbesked Kommentar. Validate Business Rules. Request- ValidateRequestRegist ration (Rules :1)

Fejlbeskeder i SMDB. Business Rules Fejlbesked Kommentar. Validate Business Rules. Request- ValidateRequestRegist ration (Rules :1) Fejlbeskeder i SMDB Validate Business Rules Request- ValidateRequestRegist ration (Rules :1) Business Rules Fejlbesked Kommentar the municipality must have no more than one Kontaktforløb at a time Fejl

Læs mere

Trolling Master Bornholm 2016 Nyhedsbrev nr. 7

Trolling Master Bornholm 2016 Nyhedsbrev nr. 7 Trolling Master Bornholm 2016 Nyhedsbrev nr. 7 English version further down Så var det omsider fiskevejr En af dem, der kom på vandet i en af hullerne, mellem den hårde vestenvind var Lejf K. Pedersen,

Læs mere

Linear Programming ١ C H A P T E R 2

Linear Programming ١ C H A P T E R 2 Linear Programming ١ C H A P T E R 2 Problem Formulation Problem formulation or modeling is the process of translating a verbal statement of a problem into a mathematical statement. The Guidelines of formulation

Læs mere

Agenda. The need to embrace our complex health care system and learning to do so. Christian von Plessen Contributors to healthcare services in Denmark

Agenda. The need to embrace our complex health care system and learning to do so. Christian von Plessen Contributors to healthcare services in Denmark Agenda The need to embrace our complex health care system and learning to do so. Christian von Plessen Contributors to healthcare services in Denmark Colitis and Crohn s association Denmark. Charlotte

Læs mere

Generalized Probit Model in Design of Dose Finding Experiments. Yuehui Wu Valerii V. Fedorov RSU, GlaxoSmithKline, US

Generalized Probit Model in Design of Dose Finding Experiments. Yuehui Wu Valerii V. Fedorov RSU, GlaxoSmithKline, US Generalized Probit Model in Design of Dose Finding Experiments Yuehui Wu Valerii V. Fedorov RSU, GlaxoSmithKline, US Outline Motivation Generalized probit model Utility function Locally optimal designs

Læs mere

From innovation to market

From innovation to market Nupark Accelerace From innovation to market Public money Accelerace VC Private Equity Stock market Available capital BA 2 What is Nupark Accelerace Hands-on investment and business developmentprograms

Læs mere

University of Copenhagen Faculty of Science Written Exam - 8. April 2008. Algebra 3

University of Copenhagen Faculty of Science Written Exam - 8. April 2008. Algebra 3 University of Copenhagen Faculty of Science Written Exam - 8. April 2008 Algebra 3 This exam contains 5 exercises which are to be solved in 3 hours. The exercises are posed in an English and in a Danish

Læs mere

Trolling Master Bornholm 2012

Trolling Master Bornholm 2012 Trolling Master Bornholm 1 (English version further down) Tak for denne gang Det var en fornøjelse især jo også fordi vejret var med os. Så heldig har vi aldrig været før. Vi skal evaluere 1, og I må meget

Læs mere

MSE PRESENTATION 2. Presented by Srunokshi.Kaniyur.Prema. Neelakantan Major Professor Dr. Torben Amtoft

MSE PRESENTATION 2. Presented by Srunokshi.Kaniyur.Prema. Neelakantan Major Professor Dr. Torben Amtoft CAPABILITY CONTROL LIST MSE PRESENTATION 2 Presented by Srunokshi.Kaniyur.Prema. Neelakantan Major Professor Dr. Torben Amtoft PRESENTATION OUTLINE Action items from phase 1 presentation tti Architecture

Læs mere

Design til digitale kommunikationsplatforme-f2013

Design til digitale kommunikationsplatforme-f2013 E-travellbook Design til digitale kommunikationsplatforme-f2013 ITU 22.05.2013 Dreamers Lana Grunwald - svetlana.grunwald@gmail.com Iya Murash-Millo - iyam@itu.dk Hiwa Mansurbeg - hiwm@itu.dk Jørgen K.

Læs mere

Observation Processes:

Observation Processes: Observation Processes: Preparing for lesson observations, Observing lessons Providing formative feedback Gerry Davies Faculty of Education Preparing for Observation: Task 1 How can we help student-teachers

Læs mere

Trolling Master Bornholm 2014

Trolling Master Bornholm 2014 Trolling Master Bornholm 2014 (English version further down) Ny præmie Trolling Master Bornholm fylder 10 år næste gang. Det betyder, at vi har fundet på en ny og ganske anderledes præmie. Den fisker,

Læs mere

Side 1 af 9. SEPA Direct Debit Betalingsaftaler Vejledning

Side 1 af 9. SEPA Direct Debit Betalingsaftaler Vejledning Side 1 af 9 SEPA Direct Debit Betalingsaftaler Vejledning 23.11.2015 1. Indledning Denne guide kan anvendes af kreditorer, som ønsker at gøre brug af SEPA Direct Debit til opkrævninger i euro. Guiden kan

Læs mere

Den nye Eurocode EC Geotenikerdagen Morten S. Rasmussen

Den nye Eurocode EC Geotenikerdagen Morten S. Rasmussen Den nye Eurocode EC1997-1 Geotenikerdagen Morten S. Rasmussen UDFORDRINGER VED EC 1997-1 HVAD SKAL VI RUNDE - OPBYGNINGEN AF DE NYE EUROCODES - DE STØRSTE UDFORDRINGER - ER DER NOGET POSITIVT? 2 OPBYGNING

Læs mere

ECE 551: Digital System * Design & Synthesis Lecture Set 5

ECE 551: Digital System * Design & Synthesis Lecture Set 5 ECE 551: Digital System * Design & Synthesis Lecture Set 5 5.1: Verilog Behavioral Model for Finite State Machines (FSMs) 5.2: Verilog Simulation I/O and 2001 Standard (In Separate File) 3/4/2003 1 ECE

Læs mere

Help / Hjælp

Help / Hjælp Home page Lisa & Petur www.lisapetur.dk Help / Hjælp Help / Hjælp General The purpose of our Homepage is to allow external access to pictures and videos taken/made by the Gunnarsson family. The Association

Læs mere

Richter 2013 Presentation Mentor: Professor Evans Philosophy Department Taylor Henderson May 31, 2013

Richter 2013 Presentation Mentor: Professor Evans Philosophy Department Taylor Henderson May 31, 2013 Richter 2013 Presentation Mentor: Professor Evans Philosophy Department Taylor Henderson May 31, 2013 OVERVIEW I m working with Professor Evans in the Philosophy Department on his own edition of W.E.B.

Læs mere

Begrænsninger i SQL. Databaser, efterår 2002. Troels Andreasen

Begrænsninger i SQL. Databaser, efterår 2002. Troels Andreasen Databaser, efterår 2002 Begrænsninger i SQL Troels Andreasen Datalogiafdelingen, hus 42.1 Roskilde Universitetscenter Universitetsvej 1 Postboks 260 4000 Roskilde Telefon: 4674 2000 Fax: 4674 3072 www.dat.ruc.dk

Læs mere

Experience. Knowledge. Business. Across media and regions.

Experience. Knowledge. Business. Across media and regions. Experience. Knowledge. Business. Across media and regions. 1 SPOT Music. Film. Interactive. Velkommen. Program. - Introduktion - Formål og muligheder - Målgruppen - Udfordringerne vi har identificeret

Læs mere

Trolling Master Bornholm 2013

Trolling Master Bornholm 2013 Trolling Master Bornholm 2013 (English version further down) Tilmeldingen åbner om to uger Mandag den 3. december kl. 8.00 åbner tilmeldingen til Trolling Master Bornholm 2013. Vi har flere tilmeldinger

Læs mere

Business Rules Fejlbesked Kommentar

Business Rules Fejlbesked Kommentar Fejlbeskeder i SMDB Validate Business Request- ValidateRequestRegi stration ( :1) Business Fejlbesked Kommentar the municipality must have no more than one Kontaktforløb at a time Fejl 1: Anmodning En

Læs mere

Personspecifikke identifikationsnumre (PID)

Personspecifikke identifikationsnumre (PID) Dansk standard DS 843-1 2. udgave 2003-12-16 Personspecifikke identifikationsnumre (PID) Person-specific identification numbers (PID) DS 843-1 København DS projekt: 53652 ICS: 35.040 Deskriptorer: personspecifikke

Læs mere

Barnets navn: Børnehave: Kommune: Barnets modersmål (kan være mere end et)

Barnets navn: Børnehave: Kommune: Barnets modersmål (kan være mere end et) Forældreskema Barnets navn: Børnehave: Kommune: Barnets modersmål (kan være mere end et) Barnets alder: år og måneder Barnet begyndte at lære dansk da det var år Søg at besvare disse spørgsmål så godt

Læs mere

User guide - For testing SFTP and HTTP/S data communication

User guide - For testing SFTP and HTTP/S data communication User guide - For testing SFTP and HTTP/S data communication with Nets Danmark A/S P. 1-9 Index General information... 3 Introduction... 3 Rights... 3 Limitations... 3 Prerequisites... 3 Preparations...

Læs mere

DOCUMENTATION FULLY DRESSED USE-CASE. 29. oktober 2012 [ TEMA PERSISTENS DOKUMENTATION] Use-case: Process Order

DOCUMENTATION FULLY DRESSED USE-CASE. 29. oktober 2012 [ TEMA PERSISTENS DOKUMENTATION] Use-case: Process Order DOCUMENTATION FULLY DRESSED USE-CASE Use-case: Process Order Omfang og niveau: Dette omhandler en ordre der går gennem systemet Primær aktør: Sælger Pre betingelser: At der ikke er registret kunder Post

Læs mere

Nyhedsmail, december 2013 (scroll down for English version)

Nyhedsmail, december 2013 (scroll down for English version) Nyhedsmail, december 2013 (scroll down for English version) Kære Omdeler Julen venter rundt om hjørnet. Og netop julen er årsagen til, at NORDJYSKE Distributions mange omdelere har ekstra travlt med at

Læs mere