b123nda's story

This All about the Story of Life – BiNusian weblog

It’s time to PSBD

April4

Sedikit berbagi pengalaman dengan yang lain..hihi..

Semoga bisa bermanfaat, dan membantu, ini pembahasan dari materi slide BINUSMAYA yang pertemuan 4-5-6, jadi bagi yg tidak memiliki buku, mungkin saya bisa bantu lwt postingan saya ini..

__________________________________________________________

What are the advantages and disadvantages of SQL?

    Keuntungan: adanya jaminan dari Microsoft tentang keamanan, pelayanan, dll mengenai EULA. Selain itu SQL dapat didapat secara free.

    Kerugian: Tidak bisa mengambil keuntungan dari PHP.

    Describe the eight base data type in SQL

    1. Boolean
    2. Character
    3. Bit
    4. Exact Numeric
    5. Approximate numeric
    6. Datetime
    7. Interval
    8. Large Objects

      Discuss the functionality and importance of the integrity enhancement feature (IEF).

        Integrity Enhancement Feature (IEF) terdiri dari batasan-batasan yang kita inginkan dalam rangka menjaga database untuk tetap konsisten.

        IEF memiliki 5 batas integrity:

        – Required data

        – Domain constraints

        – Entity integrity

        – Referential integrity

        – Enterprise constraints

        Discuss each of the clauses of the CREATE TABLE statement.

          Keuntungan: Mempermudah komplexitas, dapat berfungsi sebagai agregasi (sum, count, etc), storage lebih kecil dan lebih aman.

          Kekurangan: Bila struktur data pada table berubah, kita harus mengubah query view table tersebut

          Discuss the advantages and disadvantages of view

            Kelebihan:

            1. Data Independence
            2. Currency
            3. Improved Security
            4. Reduce Complexity
            5. Convenience
            6. Customization
            7. Data Integrity

            Kekurangan:

            1. Update Restriction
            2. Structure Restriction
            3. Performance

            Describe how the process of view resolution works

              1. The view column names in SELECT list are translated into      their corresponding column names in the defining query:

              SELECT s.staffNo AS staffNo, COUNT(*) As cnt

              1. View names in FROM are replaced with corresponding FROM lists of defining query:

              FROM Staff s, PropertyForRent p

              1. WHERE from user query is combined with WHERE of defining query using AND:

              WHERE s.staffNo = p.staffNo AND branchNo = ‘B003

              1. GROUP BY and HAVING clauses copied from defining query:

              GROUP BY s.branchNo, s.staffNo

              1. ORDER BY copied from query with view column name translated into defining query column name

              ORDER BY s.staffNo

              1. The final merged query becomes:

              SELECT s.staffNo, COUNT(*)

              FROM staff s, PropertyForRent p

              WHERE s.staffNo = p.staffNo AND branchNo = ‘B003’

              GROUP BY s.branchNo, s.staffNo

              ORDER BY s.staffNo;

              What restrictions are necessary to ensure that a view is updatable?

                Jika system databasenya mendukung reserves mapping dari view ke table

                What is a materialized view and what are the advantages of a maintaining a materialized view rather than using the view resolution process?

                  Seperti halnya sebuah view, tapi dia memiliki deskripsi material yg lebih jelas sehingga memiliki fasilitas seperti halnya sebuah table, dapat diupdate, memiliki index dsb.

                  Perbedaan: lebih cepat, memiliki struktur yg lebih jelas, dapat memiliki index, data didalamnya terupdate setiap waktu sesuai dengan data pada masternya.

                  posted under Uncategorized

                  Email will not be published

                  Website example

                  Your Comment: