Catatan
Akses ke halaman ini memerlukan otorisasi. Anda dapat mencoba masuk atau mengubah direktori.
Akses ke halaman ini memerlukan otorisasi. Anda dapat mencoba mengubah direktori.
Applies to:✅ SQL analytics endpoint and Warehouse in Microsoft Fabric
Dalam tutorial ini, pelajari cara menganalisis data dengan notebook di Gudang.
Nota
This tutorial forms part of an end-to-end scenario. Untuk menyelesaikan tutorial ini, Anda harus terlebih dahulu menyelesaikan tutorial ini:
- Membuat ruang kerja
- Membuat Gudang
- Memasukkan data ke dalam Gudang
Membuat buku catatan T-SQL
Dalam tugas ini, pelajari cara membuat buku catatan T-SQL.
Pastikan ruang kerja yang Anda buat di tutorial pertama terbuka.
On the Home ribbon, open the New SQL query dropdown, and then select New SQL query in notebook.
Di panel Explorer, pilih Gudang untuk menampilkan objek dari gudang
Wide World Importers
.Untuk menghasilkan templat SQL untuk menjelajahi data, di sebelah kanan tabel
dimension_city
, pilih elipsis (...), lalu pilih SELECT TOP 100.To run the T-SQL code in this cell, select the Run cell button for the code cell.
Tinjau hasil kueri di panel hasil.
Create a lakehouse shortcut and analyze data with a notebook
In this task, learn how to create a lakehouse shortcut and analyze data with a notebook.
Buka halaman depan ruang kerja
Data Warehouse Tutorial
.Pilih + Item Baru untuk menampilkan daftar lengkap jenis item yang tersedia.
From the list, in the Store data section, select the Lakehouse item type.
In the New lakehouse window, enter the name
Shortcut_Exercise
.Select Create.
When the new lakehouse opens, in the landing page, select the New shortcut option.
Di jendela jalan pintas baru, pilih opsi Microsoft OneLake.
Di jendela Pilih jenis sumber data, pilih gudang
Wide World Importers
yang Anda buat di tutorial Buat gudang, lalu pilih Berikutnya.Di browser objek OneLake, perluas Tabel, perluas skema
dbo
, lalu pilih kotak centang untuk tabeldimension_customer
.Select Next.
Select Create.
Di panel
Explorer, pilih tabel untuk mempratinjau data, lalu tinjau data yang diambil dari tabel di gudang. To create a notebook to query the
dimension_customer
table, on the Home ribbon, in the Open notebook dropdown, select New notebook.In the Explorer pane, select Lakehouses.
Seret tabel
dimension_customer
ke sel buku catatan yang terbuka.Perhatikan kueri PySpark yang ditambahkan ke sel buku catatan. This query retrieves the first 1,000 rows from the
Shortcut_Exercise.dimension_customer
shortcut. This notebook experience is similar to Visual Studio Code Jupyter notebook experience. You can also open the notebook in VS Code.On the Home ribbon, select the Run all button.
Tinjau hasil kueri di panel hasil.