Ik1074

Reviewed by Editorial Team
The ProProfs editorial team is comprised of experienced subject matter experts. They've collectively created over 10,000 quizzes and lessons, serving over 100 million users. Our team includes in-house content moderators and subject matter experts, as well as a global network of rigorously trained contributors. All adhere to our comprehensive editorial guidelines, ensuring the delivery of high-quality content.
Learn about Our Editorial Process
| By Somebeas
S
Somebeas
Community Contributor
Quizzes Created: 1 | Total Attempts: 655
| Attempts: 655 | fr�gor: 22
Please wait...

Question 1 / 22
0 %
0/100
Score 0/100
1. Är nedanstående tabellen RÄNTEÄNDRING en implementation av Langefors elementarmeddelande (e-message)? 

Explanation

The given correct answer is "Ja" which means "Yes" in Swedish. However, without any context or information about the table "RÄNTEÄNDRING" or the Langefors elementarmeddelande (e-message) implementation, it is difficult to provide a specific explanation. It is possible that the table "RÄNTEÄNDRING" is indeed an implementation of the Langefors elementarmeddelande and the answer "Ja" indicates that it is correct. Without further information, this is the best explanation that can be provided.

Submit
Please wait...
About This Quiz
Ik1074 - Quiz

2. Påstående: Alla databasservrar består av:Memory (minne)Processes (bakgrundsprocesser)Storage (lagring, filer på disk) Påståendet är:

Explanation

The given statement is true. It states that all database servers consist of memory, processes, and storage. This means that in order for a database server to function properly, it needs memory to store data and perform operations, processes to handle background tasks and queries, and storage to store data on disk.

Submit
3. Vilket av följande påståenden är sant:

Explanation

The correct answer states that the business processes need to be described before creating a data model because the data model is intended to support the business processes. This means that understanding the business processes is essential in order to design a data model that accurately represents and supports those processes.

Submit
4. I en databas finns en kundorder som har orderdatum = 2015-02-65. Hur kan detta vara möjligt? Vilken av nedanstående förklaringar kan vara rätt:

Explanation

The given answer suggests that the reason for the incorrect order date in the database is that there is a wrong data type assigned to the "orderdatum" column. This means that the column is not properly configured to accept and store the correct format of the date, resulting in an invalid date being stored.

Submit
5. Följande påstående: " tillåter alltid DML-operationer mot underliggande bastabell" gäller för:

Explanation

Enkla vyer tillåter alltid DML-operationer mot underliggande bastabell.

Submit
6. Vilket eller vilka påståenden är sanna:

Explanation

The correct answer is that the business processes must be described before we can create a data model because the data model is intended to support the business processes. This means that the data model should be based on and aligned with the way the business operates, so understanding the business processes is necessary in order to design an effective data model.

Submit
7. Studera nedanstående bild som föreställer en ofylld blankett från skatteverket. Vad representerar bilden?

Explanation

The image represents metadata. Metadata refers to the information about the data, such as the date it was created, the author, or the file size. In this case, the image is a blank form from the tax authorities, and the metadata would include details about the form, such as its purpose or the version number.

Submit
8. Kan man säga att datatyper är constraints?

Explanation

The correct answer is "Ja, då de medför begränsningar för den data som kan lagras i en tabell." This is because datatyper (data types) in a database define the type of data that can be stored in a table column, and they impose constraints on the values that can be entered. For example, a column with a data type of "integer" can only store whole numbers, while a column with a data type of "varchar" can store character strings of a certain length. Therefore, datatyper can be considered as constraints because they restrict the type and format of data that can be stored in a table.

Submit
9. Vilket av följande påståenden är sant vad gäller referensintegritet?

Explanation

The correct answer states that a foreign key that is not allowed to be NULL must match an exact value in the primary key of the table it refers to. This means that when a foreign key is used to establish a relationship between two tables, the value of the foreign key in one table must exist as a primary key value in the referenced table. This ensures that the integrity of the relationship is maintained and prevents any inconsistencies or orphaned records.

Submit
10. Hur ska vi använda oss av commit när vi jobbar med SQL? Vilket av nedanstående alternativ är rätt?

Explanation

Both alternatives a and b are correct.

Submit
11. PK, Primary key eller primärnyckelNär man i praktiken väljer eller utformar identifierande variabler, kan man välja mellan helt konstruerade, artificiella identifikationsbegrepp och mer eller mindre naturligaVilket av följande påståenden är korrekt gällande entitetsintegritet (= Primary key):

Explanation

The correct answer states that it is important for primary keys (PK) to be stable at the instance level, meaning that they should not need to be changed throughout the lifespan of the objects or rows. This is important for maintaining entity integrity, as the primary key is used to uniquely identify each record in a database table. If the primary key were to change, it could lead to inconsistencies and errors in the data. Therefore, having stable primary keys ensures the integrity and reliability of the database.

Submit
12. Vilket av följande påståenden om relations-vyer är sant?

Explanation

The statement states that a view can be used as a mechanism to maintain security by granting different roles access to view objects instead of underlying base tables. This means that users with different roles can be restricted from accessing the underlying data directly but can still access the data through the view. This helps in controlling and managing the security of the database.

Submit
13. Om vi skapar flera olika rowtriggers till en tabell som ska starta before insert på tabellen. Hur vet vi i vilken ordning dessa triggrar kommer att exekvera? Vilket av nedanstående påstående om detta är korrekt? Triggrarna kommer att exekvera:

Explanation

The correct answer is that the triggers will execute in a random order. This means that there is no guarantee of the sequence in which the triggers will be executed when multiple row triggers are created for a table with a before insert action.

Submit
14. Vilken av följande constraints kallas även för referensintegritet:

Explanation

A foreign key is a constraint that ensures referential integrity in a relational database. It is used to establish a link between two tables by referencing the primary key of one table as a foreign key in another table. This constraint ensures that the values in the foreign key column of the referencing table match the values in the primary key column of the referenced table. By enforcing this constraint, it guarantees that the data in the referencing table is consistent and maintains the integrity of the relationship between the two tables.

Submit
15. Om vi vill se artnr, artnamn, pris för de artiklar som har ett pris som är högre än medelpriset för alla artiklar. Vilken av följande SQL-satser är då korrekt?

Explanation

The correct answer is "select artnr,artnamn,pris
from artikel
where pris > (select avg(pris)
from artikel);"

This answer correctly uses the WHERE clause to filter the rows based on the condition that the price (pris) is greater than the average price (avg(pris)) of all the articles in the table. It retrieves the columns artnr, artnamn, and pris from the artikel table.

Submit
16. Studera följande funktion som används för inloggning: Den jobbar mot kundtabellen på sid. 2. create or replace procedure loggaInreturn numberisv_kontroll number(1);beginselect count(knr)into v_kontrollfrom kundwhere knr = p_knr and password = p_password;  return v_kontroll;end;/ Kommer funktionen loggaIn att exekvera utan problem vid nedanstående proceduranrop? Select loggaIn(101,'qwerty')From dual;

Explanation

The given function loggaIn is a procedure that takes two parameters, p_knr and p_password, and returns a number. It selects the count of knr from the kund table where knr is equal to p_knr and password is equal to p_password. The result is stored in v_kontroll variable and returned. However, in the provided procedure call loggaIn(101, 'qwerty') from dual, the values 101 and 'qwerty' are not declared or defined as the parameters p_knr and p_password. Therefore, the function will not execute successfully.

Submit
17. Vilket av följande alternativ gällande NULL är sant?

Explanation

The given statement is true because any arithmetic operation involving NULL will result in NULL. In this case, adding 564 to NULL will still result in NULL.

Submit
18. Nedanstående PLSQL kod har en inbyggd felhanteringsdel: declare  x number(5);begin  select count(knr)  into x  from kund  where 1 = 4;    dbms_output.put_line('Olle');exception  when no_data_found then <- Kommer aldrig kastas    dbms_output.put_line('Kalle');end; Vad skrivs ut?

Explanation

The code will raise a "no_data_found" exception because the condition "1 = 4" in the WHERE clause will never be true. Therefore, the select statement will not return any rows and the exception block will be executed. As a result, the message "Olle" will be printed using the dbms_output.put_line function. The message "Kalle" will not be printed because the exception block will handle the exception and the code will not continue to execute after the exception block.

Submit
19. Vad kan vi åstadkomma med DDL-satser?

Explanation

The correct answer states that with DDL statements, we can change the properties of the table object. DDL (Data Definition Language) statements are used to define and modify the structure of database objects such as tables, views, functions, procedures, etc. These statements allow us to add, modify, or delete columns, constraints, indexes, and other properties of a table. Therefore, the answer accurately describes one of the capabilities of DDL statements.

Submit
20. Vilket/vilka av följande påståenden är sanna för datatypen date:

Explanation

The given answer is correct. In the data type "date", adding a number to a date will result in a new date. Similarly, subtracting one date from another will give the difference in terms of a number, representing the number of days between the two dates. Lastly, subtracting a number from a date will again result in a new date.

Submit
21. I dokumentet A framework for analysing, modelling, and designing business processes, beskriver Bo Sundgren en affärsprocess ur tre olika perspektiv. Vilka är dessa tre perspektiv? Besvara frågan genom att ange vilket av nedanstående alternativ som är korrekt:

Explanation

The three perspectives described by Bo Sundgren in the document are: what the process does, how it is carried out, and why it is done in that way.

Submit
22. Om vi vill se knr och antalet ordrar som varje kund har. Vilken av följande SQL-satser kommer att hämta korrekt information?

Explanation

The correct answer is "select knr,count(ordnr) from kundorder group by knr;". This query will retrieve the customer number (knr) and the count of orders (ordnr) for each customer from the table "kundorder". The "group by knr" clause ensures that the count is calculated per customer, rather than for the entire table.

Submit
View My Results

Quiz Review Timeline (Updated): Mar 21, 2023 +

Our quizzes are rigorously reviewed, monitored and continuously updated by our expert board to maintain accuracy, relevance, and timeliness.

  • Current Version
  • Mar 21, 2023
    Quiz Edited by
    ProProfs Editorial Team
  • Oct 26, 2017
    Quiz Created by
    Somebeas
Cancel
  • All
    All (22)
  • Unanswered
    Unanswered ()
  • Answered
    Answered ()
Är nedanstående tabellen RÄNTEÄNDRING en...
Påstående: Alla databasservrar består av:Memory...
Vilket av följande påståenden är sant:
I en databas finns en kundorder som har orderdatum = 2015-02-65. Hur...
Följande påstående: " tillåter alltid...
Vilket eller vilka påståenden är sanna:
Studera nedanstående bild som föreställer en ofylld...
Kan man säga att datatyper är constraints?
Vilket av följande påståenden är sant vad...
Hur ska vi använda oss av commit när vi jobbar med SQL?...
PK, Primary key eller primärnyckelNär man i praktiken...
Vilket av följande påståenden om relations-vyer är...
Om vi skapar flera olika rowtriggers till en tabell som ska starta...
Vilken av följande constraints kallas även för...
Om vi vill se artnr, artnamn, pris för de artiklar som har ett...
Studera följande funktion som används för inloggning:...
Vilket av följande alternativ gällande NULL är sant?
Nedanstående PLSQL kod har en inbyggd...
Vad kan vi åstadkomma med DDL-satser?
Vilket/vilka av följande påståenden är sanna...
I dokumentet A framework for analysing, modelling, and designing...
Om vi vill se knr och antalet ordrar som varje kund har. Vilken av...
Alert!

Advertisement