0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

めも(WIN10)

Posted at

SCOOP を使ってPython をInstallする

#Power Shell
scoop install python
python3 -V
#Python 3.12.2
#Power Shell
mkdir Pyenv
# python -m venv <Dir name>
 python -m venv C:\Users\UserName\Pyenv

Script直下にActivate.ps1がある事を確認してActivate.ps1を実行する(仮想環境が有効になる)

Scripts\activate.ps1
CREATE TABLE shuzen_list (
   id TEXT, 
   工事No TEXT, 
   工事内容 TEXT, 
   建物名 TEXT, 
   場所 TEXT, 
   受付日 TEXT, 
   工事完了日 TEXT, 
   売価予定金額 INTEGER, 
   売価合計 INTEGER, 
   "値引後売価(本体)" INTEGER,
   "原価(本体)" INTEGER, 
   "値引後原価(本体)" INTEGER, 
   利益 INTEGER
);

Sqlite

SELECT * FROM 修繕一覧;
TABLE ROWS COUNT
SELECT COUNT(*) FROM 修繕一覧;
SELECT COUNT(*) FROM 修繕詳細;
SELECT 工事番号,
建物名,
工事内容,
受付日,
売価合計
FROM 修繕一覧;
重複する値を除外して抽出
 SELECT DISTINCT "建物名" FROM "修繕一覧";
SELECT
DISTINCT "建物名",
"工事番号",
"工事名",
"工事内容",
"場所",
"受付日",
"売価合計",
"原価",
"利益"
FROM "修繕一覧"
GROUP BY "建物名";
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?