text
stringlengths
6
9.38M
CREATE PROC [ERP].[Usp_Sel_ListaPrecioDetalle_By_ID] @IdListaPrecioDetalle INT AS BEGIN SELECT LPD.ID, IdListaPrecio, LPD.IdProducto, P.Nombre, PrecioUnitario, PorcentajeDescuento, (SELECT [ERP].[ObtenerValorParametroByAbreviaturaFecha](P.IdEmpresa, 'VPU2', getdate())) AS FlagPrecioUnitario2Decima...
/* Warnings: - You are about to drop the column `internId` on the `Application` table. All the data in the column will be lost. - You are about to drop the column `message` on the `Application` table. All the data in the column will be lost. - You are about to drop the `_ApplicationToUser` table. If the table ...
create table JBOOKS (BOOK_ID bigint not null, DESC CLOB, NAME varchar(255), PRICE decimal(19,2), primary key (BOOK_ID)); alter table JBOOKS add constraint UK_j5kgaosmuibg20yalaplmf43t unique (NAME);
--Run Operation script first --0090 Notification DO $$ Declare NcTID uuid; Declare NcTVN integer; Declare NcResID uuid; Declare OrgEmployeeRoleID uuid; Declare UserUserTypeID uuid; Begin NcTVN := 1; NcTID := (select uuid_generate_v1()); NcResID := (select uuid_generate_v1()); OrgEmployeeRoleID := (select "RoleID" fr...
DROP TABLE IF EXISTS albumtable; CREATE TABLE albumtable ( id INTEGER AUTO_INCREMENT, artist VARCHAR(25) NOT NULL, albumname VARCHAR(255) NOT NULL, price DECIMAL(10, 2) NOT NULL, quantity INTEGER NOT NULL, genre VARCHAR(25) NOT NULL, PRIMARY KEY(id) ); INSERT INTO albumtable ( artist, albumname, price, quant...
/** * SQL for get list todofuken and Shikugun by todofuken * @author NghiaTC * @version $Id: SukTodofukenShikugunService_getShikugunCdByShikugunKukuri3Cd_Sel_01.sql 22881 2014-08-25 07:42:52Z p_chon_gia $ */ SELECT DISTINCT MCMJKN.SHIKUGUN_CD , MCMJKN.TODOFUKEN_NM , MCMJKN.SHIKUGUN_KUKURI3_NM FROM M...
-- phpMyAdmin SQL Dump -- version 4.5.1 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Feb 28, 2017 at 08:24 PM -- Server version: 10.1.19-MariaDB -- PHP Version: 7.0.13 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CL...
INSERT INTO items (id, name, category, brand, unit, qty) VALUES (1, 'Item A', 1, 1, 1, 0), (2, 'Item B', 2, 2, 2, 0), (3, 'Item C', 1, 2, 1, 0);
-- MySQL dump 10.13 Distrib 5.7.32, for Linux (x86_64) -- -- Host: localhost Database: test_database -- ------------------------------------------------------ -- Server version 5.7.32-0ubuntu0.18.04.1 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARAC...
-- phpMyAdmin SQL Dump -- version 3.3.9 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: Mar 10, 2020 at 07:18 AM -- Server version: 5.5.8 -- PHP Version: 5.3.5 SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SE...
INSERT INTO vpbx.syncparam(name, key, enabled) VALUES ('vpbx.announce', 'announce_id', true); INSERT INTO vpbx.syncparam(name, key, enabled) VALUES ('vpbx.asterisk_instance', 'asterisk_instance_id', true); CREATE TRIGGER tr_announce AFTER INSERT OR UPDATE OR DELETE ON vpbx.announce FOR EACH ROW EXECUTE PROCE...
/* Programming for Data Science with Python Nanodegree Udacity's certified program > SQL practice > Lesson 3 : SQL Aggregations Who was the primary contact associated with the earliest web_event? */ SELECT a.primary_poc primary_poc, w.occurred_at occurred_at FROM web_events w JOIN accounts a ON a.id = w.account_id ...
CREATE TABLE `tb_category` ( `id` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(255) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=13 DEFAULT CHARSET=latin1; CREATE TABLE `tb_package` ( `id` int(11) NOT NULL AUTO_INCREMENT, `uid` varchar(255) NOT NULL, `name` varchar(255) NOT NULL, `versi...
SELECT 'Kamara' student FROM DUAL;
CREATE TABLE `post` ( `id` int(11) NOT NULL AUTO_INCREMENT, `seq` int(11) NOT NULL, `menu_id` int(11) NOT NULL, `type` varchar(50) NOT NULL, `title` varchar(100) NOT NULL, `year` varchar(50) DEFAULT NULL, `contents` text, `del_yn` enum('N','Y') DEFAULT 'N', PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT C...
INSERT INTO bears (name, age, gender, color, temperament, alive) VALUES ('Mr. Chocolate', 26, 'Male', 'Brown', 'Angry', true); INSERT INTO bears (name, age, gender, color, temperament, alive) VALUES ('Rowdy', 26, 'Male', 'Brown', 'Angry', true); INSERT INTO bears (name, age, gender, color, temperament, al...
if not exists(select * from sys.columns where Name = N'BasketItemGroupId' and Object_ID = Object_ID(N'prod.BasketItems')) begin ALTER TABLE prod.BasketItems ADD [BasketItemGroupId] [int] NULL end
CREATE OR REPLACE VIEW project_competitive AS SELECT * FROM project WHERE key = 'project_competitive' AND kind = 'v';
/* Programming for Data Science with Python Nanodegree Udacity's certified program > SQL practice > Lesson 3 : SQL Aggregations Find the total amount of 'standard_qty' paper ordered in the 'orders' table. */ SELECT SUM(o.standard_qty) total_standard_sales FROM orders o;
\c alpha_dev; drop table if exists attribute_rank; create table attribute_rank ( attr_id integer, rank smallint, active boolean, cdate timestamp, mdate timestamp, primary key (attr_id) );
CREATE TABLE Department( did VARCHAR2(20), Major VARCHAR2(20), -- sid VARCHAR2(20), PRIMARY KEY (did) );
declare cursor acharatua is with cte_sap as ( select age.cd_elo_agendamento , sap.* from vnd.elo_agendamento age inner join vnd.elo_carteira_sap sap on age.nu_carteira_version = sap.nu_carteira_version where age.cd_elo_status in (1,2,3,4,5) AND (NOT(NVL(sap.NU_ORDEM_VENDA, '0') IN (' ', '0', '0 ...
CREATE TABLE [tms].[agendamientos] ( [id_agendamiento] BIGINT NOT NULL, [numero_solicitud] VARCHAR (20) NOT NULL, [id_estado_agendamiento] VARCHAR (50) NOT NULL, [id_orden] BIGINT NOT NULL, [id_cliente] BIGINT...
-- orders drop constraints -- depends: 20211004_07_sT7Q1-orders-table ALTER TABLE orders DROP CONSTRAINT fk_orders_customers;
UPDATE `mine location` SET `Region Mine`='Alabama' WHERE `Region Mine`='AL'; UPDATE `mine location` SET `Region Mine`='Alaska' WHERE `Region Mine`='AK'; UPDATE `mine location` SET `Region Mine`='Arizona' WHERE `Region Mine`='AZ'; UPDATE `mine location` SET `Region Mine`='Arkansas' WHERE `Region Mine`='AR'; UPDATE `mine...
ALTER TABLE GENERAL_IMAGE ADD CONSTRAINT SOP_INSTANCE_UID_UNIQUE UNIQUE(SOP_INSTANCE_UID); COMMIT;
SELECT t.date_time AS year_week, DATE_SUB( DATE_ADD( CONCAT(LEFT(t.date_time, 4), '-01-01'), INTERVAL 7*RIGHT(t.date_time, 2) DAY ), INTERVAL WEEKDAY( DATE_ADD( CONCAT(LEFT(t.date_time, 4), '-01-01'), INTERVAL 7*RIGHT(t.date_time, 2) DAY ) ) DAY ) A...
-- phpMyAdmin SQL Dump -- version 4.0.9 -- http://www.phpmyadmin.net -- -- Хост: 127.0.0.1 -- Время создания: Апр 09 2015 г., 13:04 -- Версия сервера: 5.6.14 -- Версия PHP: 5.5.6 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!401...
-- phpMyAdmin SQL Dump -- version 4.5.1 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Apr 11, 2018 at 02:01 PM -- Server version: 10.1.19-MariaDB -- PHP Version: 7.0.13 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CL...
create table user_info( u_id varchar2(15), u_pw varchar2(128), <<<<<<< HEAD u_name varchar2(15), ======= u_name varchar2(5), >>>>>>> branch 'master' of https://github.com/EomNanyeong/BLUEMING2.git u_hp varchar2(15), constraint u_id_pk prima...
INSERT INTO TEST_LAB (ID,NAME) VALUES (1, 'LAB1') / INSERT INTO TEST_LAB (ID,NAME) VALUES (2, 'LAB2') /
-- phpMyAdmin SQL Dump -- version 4.2.12deb2+deb8u1 -- http://www.phpmyadmin.net -- -- Client : localhost -- Généré le : Lun 11 Avril 2016 à 19:17 -- Version du serveur : 5.5.47-0+deb8u1 -- Version de PHP : 5.6.19-0+deb8u1 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARAC...
CREATE TABLE [ERP].[CTSDetalle] ( [ID] INT IDENTITY (1, 1) NOT NULL, [IdCTS] INT NULL, [IdDatoLaboral] INT NULL, [Sueldo] DECIMAL (14, 5) NULL, [AsignacionFamiliar] DECIMAL (14, 5) NULL, [Bonificacion] DECIM...
merge into FM$$_fm_config f using (select 1 id, 'fm parallel degree' name, 4 value, 'fm parallel degree control' description from dual) t on (f.id = t.id) when not matched then insert values (t.id, t.name, t.value, t.description); --1-- FM$$_fam insert into FM$$...
DECLARE v_StudentId NUMBER(5) := 1; v_FirstName VARCHAR2(20); BEGIN SELECT first_name INTO v_FirstName FROM students WHERE id = v_StudentId; EXCEPTION WHEN NO_DATA_FOUND THEN INSERT INTO log_table(info) VALUES('Student of id 1 does not exist'); END; --testando git
CREATE TABLE `fragments` ( `id` INTEGER PRIMARY KEY, `name` TEXT ); -- with the 'matches' table we can support multiple fragment matches , we might need to install triggers to ensure correctness of the 'transformation' attribute -- NOTE: we might need to look out for NULL characters in the blob... -- NOTE: mayb...
/* Navicat MySQL Data Transfer Source Server : localhost Source Server Version : 50157 Source Host : localhost:3306 Source Database : zipkin2 Target Server Type : MYSQL Target Server Version : 50157 File Encoding : 65001 Date: 2018-06-24 11:48:08 */ SET FOREIGN_KEY_CHECKS=0; -- --...
DROP TABLE certs; DROP FUNCTION update_updated_at() RETURNS TRIGGER;
CREATE TEMPORARY TABLE cids_to_include (cid int); WITH temp AS ( SELECT DISTINCT cid_1, cid_2 FROM chemical_interactions_v2.drug_atc JOIN chemical_interactions_v2.drug_chemical_similarity USING (cid_1, cid_2) JOIN chemical_interactions_v2.drug_side_effect USING (cid_1, cid_2) ) INSERT INTO cids_to_incl...
-- Drop and recreate Users table (Example) DROP TABLE IF EXISTS order_menu_items CASCADE; DROP TABLE IF EXISTS orders CASCADE; DROP TABLE IF EXISTS menu_categories CASCADE; DROP TABLE IF EXISTS menu_items CASCADE; DROP TABLE IF EXISTS users CASCADE; CREATE TABLE users ( id SERIAL PRIMARY KEY NOT NULL, password VA...
-- criando banco de dados create database db_rh; -- ativando o banco use db_rh; -- criando tabela create table tb_funcionarios( id bigint auto_increment, nome varchar(255) not null, idade int not null, area varchar(255) not null, cargo varchar(255) not null, primary key (id) ); -- editando tabela alter table tb_fun...
-- phpMyAdmin SQL Dump -- version 5.0.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1:3306 -- Generation Time: Jan 20, 2021 at 07:53 PM -- Server version: 5.7.31 -- PHP Version: 7.3.21 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@...
select db_admin_create_course('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VySWQiOiJ3a2luZzYiLCJSYW5kIjoiNDMyNzg0MTc4NDQyMzEiLCJpYXQiOjE1NDE2OTI3MDV9.Sg1dsFGdtbrIS0tV3hljj_1VQ_mf6lamfFIbY89fsow', 'CS6460', 'Educational Technology', 'test123','08/01/2018', '05/01/2019') select add_instructor_to_course(...
-- -- PostgreSQL database dump -- SET statement_timeout = 0; SET lock_timeout = 0; SET client_encoding = 'UTF8'; SET standard_conforming_strings = on; SET check_function_bodies = false; SET client_min_messages = warning; SET search_path = public, pg_catalog; ALTER TABLE ONLY public.films DROP CONSTRAINT films_direct...
/* Navicat Premium Data Transfer Source Server : zz Source Server Type : MySQL Source Server Version : 80019 Source Host : localhost:3306 Source Schema : disk Target Server Type : MySQL Target Server Version : 80019 File Encoding : 65001 Date: 19/07/2021 08:27:25 */ ...
-- MySQL dump 10.13 Distrib 5.7.10-3, for Linux (x86_64) -- -- Host: localhost Database: my_free -- ------------------------------------------------------ -- Server version 5.7.10-3-log /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS...
# --- Created by Ebean DDL # To stop Ebean DDL generation, remove this comment and start using Evolutions # --- !Ups create table comment ( id bigint not null, text varchar(255) not null, author_name varchar(255) not null, constraint pk_comment primary...
--EJ: XML_UFCE_EJ_1.xml --*******************************************************************************************************-------- --recepcion sin nro de CFE, lo asigna luego el sistema de CFE insert into feWSRecepcion (fechageneracion,fact, EMailPDFDest) values (getdate(), getdate(), 'horacab@gmail.com.uy'...
select s from street s where ST_distance_sphere( GeomFromText('POINT(14.508301 46.048793)', 4326), ST_line_interpolate_point(s.lineString, ST_line_locate_point(s.lineString, GeomFromText('POINT(14.508301 46.048793)', 4326))) ) <= 10000 order by ST_distance_sphere( GeomFromText('POINT(14.508301 46.048793)', 4326), ...
create database if not exists order_sys; use order_sys; create table if not exists tb_dish( id int primary key auto_increment, name varchar(32) unique not null, price int not null, ctime datetime ); create table if not exists tb_order( id int primary key auto_increment, dishes varchar(255) comment'[1, ...
CREATE TABLE [Seguridad].[Sistema] ( [ID] INT IDENTITY (1, 1) NOT NULL, [IdAplicacion] INT NOT NULL, [Nombre] VARCHAR (250) NULL, [Orden] INT NULL, CONSTRAINT [PK__Sistema__3214EC274EED782D] PRIMARY KEY CLUSTERED ([ID] ASC), CONSTRAINT [FK__M...
DROP TABLE IF EXISTS USER_ROLE; DROP TABLE IF EXISTS ADDRESS; DROP TABLE IF EXISTS USER; DROP TABLE IF EXISTS ROLE; CREATE TABLE IF NOT EXISTS ADDRESS ( addrId INT NOT NULL PRIMARY KEY AUTO_INCREMENT, street VARCHAR(255) DEFAULT NULL, city VARCHAR(255) DEFAULT NULL, state VARCHA...
-- テーブルの削除 DROP TABLE lend; DROP TABLE users; DROP TABLE books; -- テーブルの作成 CREATE TABLE books ( isbn10 VARCHAR(10) NOT NULL PRIMARY KEY, title TEXT, publisher TEXT, author TEXT, location TEXT, status bool, quality INT ); CREATE TABLE users( userid INT NOT NULL AUTO_INCREMENT PRIMARY KEY, loginid TEXT, na...
set pages 200 alter session set nls_date_format='dd/mm/yyyy hh24:mi:ss'; select trunc(FIRST_TIME,'hh') data_hora,count(*) qtd, round(sum(blocks*block_size/1024/1024)) mb from v$archived_log where to_char(trunc(FIRST_TIME,'hh'),'YYYYMM') = to_char(sysdate-1,'YYYYMM') group by trunc(FIRST_TIME,'hh') order by trun...
insert into Customer(customerID, phoneNo, customerName) value (3, 705868666, 'Christine'); insert into Customer(customerID, phoneNo, customerName) value (4, 705868555, 'sarah'); insert into Customer(customerID, phoneNo, customerName) value (5, 705869997, 'jan'); insert into Customer(customerID, phoneNo, customerName) ...
select * from eps_prop_sites where proposal_number = '1201';
INSERT INTO macros (calories, fats, carbs, protein, cust_id) VALUES ($1, $2, $3, $4, $5);
-- 深圳 地区 INSERT INTO `area`(`name`) VALUES ('福田区'),('罗湖区'),('南山区'),('盐田区'),('宝安区'),('龙岗区'),('龙华区'),('坪山区'),('光明区'),('大鹏新区'); -- 房屋 设施 INSERT INTO `facility`(`name`) VALUES('无线网络'),('热水淋浴'),('空调'),('暖气'),('允许吸烟'),('饮水设备'),('牙具'),('香皂'),('拖鞋'),('手纸'),('毛巾'),('沐浴露、洗发露'),('冰箱'),('洗衣机'),('电梯'),('允许做饭'),('允许带宠物'),('允许聚会'),('...
-- phpMyAdmin SQL Dump -- version 4.2.5 -- http://www.phpmyadmin.net -- -- Host: localhost:8889 -- Generation Time: Mar 01, 2015 at 02:49 AM -- Server version: 5.5.38 -- PHP Version: 5.5.14 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; -- -- Database: `hackdfw` -- -- -----------------------------...
-- ======================================================================================= -- Business Constraint -- =================== -- #df:assertListZero# -- formalized memb...
create table COMMENT2 ( ID number PRIMARY KEY, NAME VARCHAR2(20) NOT NULL, CONTENT VARCHAR2(4000) NOT NULL ); create table ID_REPOSITORY ( NAME VARCHAR2(20) PRIMARY KEY, VALUE number ); insert into ID_REPOSITORY values ('COMMENT2', 0);
declare -- 一行のコメント message varchar2(20) := 'hello world!'; num1 INTEGER; num2 REAL; num3 DOUBLE PRECISION; SUBTYPE name IS char(20); SUBTYPE message IS varchar2(100); userName name; error message; sales number(10,2); pi CONSTANT double precision := 3.1415; -- 常量 name varchar2(25); address varchar2(100); ...
SHOW PROC '/frontends';
/* Formatted on 17/06/2014 18:16:00 (QP5 v5.227.12220.39754) */ CREATE OR REPLACE FORCE VIEW MCRE_OWN.VTMCRE0_APP_GEST_POSIZIONE ( COD_ABI_CARTOLARIZZATO, COD_NDG, COD_SNDG, COD_MACROSTATO, COD_STATO_RISCHIO, COD_MACROSTATO_DESTINAZIONE, NOTE_CLASSIFICAZIONE, DTA_INS, FLG_LETTURA_VERBALE, ...
/*插入 insert into 表名[字段列表] values(对应的字段列表) insert into 表名 values(对应表结果) */ create table my_teacher( name varchar(20), age int ); insert into my_teacher(name,age) values ('jack',30); insert into my_teacher values ('tom',32); # [HY000][1366] Incorrect integer value: 'tom' for column 'age' at row 1 insert i...
create database PracticalTest create table tbl_Customer ( id varchar(20) not null primary key, fullName nvarchar(50) not null, phoneNumber varchar(30) not null, address nvarchar(250) not null, customerLevel int, password varchar(30) not null ) create table tbl_Order ( id varchar(10) not nu...
PARAMETERS [@FechaIniID] Text (255), [@FechaFinID] Text (255), [@VariedadID] Text (255), [@LoteID] Text (255), [@CampañaIni] Text (255), [@CampañaFin] Text (255), [@FUC] Text (255), [@GuiaSerie] Text (255), [@GuiaNumero] Text (255),...
delete from db_refresh.save_table_index where dump_timestampkey = :v_dump_timestampkey; insert into db_refresh.save_table_index SELECT c.oid as reloid ,n.nspname as schema_name ,c.relname as table_name ,i.oid as index_oid ,i.relname as index_name ,'INDEX'::varchar as index_type ,pg_get_indexdef(i.oid) || ';' as in...
#进阶5:分组查询 /* 语法: select 分组函数,列 from 表 【where 筛选条件】 group by 分组列表 【order by 子句】 注意: 查询列表必须特许,要求是分组函数和group by后出现的字段 特点: 1.分组查询中的筛选条件分为两类 2.分组函数做条件肯定是放在having子句中 3.能用分组前筛选的,就优先考虑使用分组前筛选的 4.group by子句支持单个字段分组,多个字段分组(多个字段之间用逗号隔开没有顺序要求) 5.也可以排序查询 */ #1.简单的分组 #案例1:查询每个工种的员工平均工资 SELECT TRUNCATE(AVG(salar...
DELETE FROM Profiles WHERE Uuid = '%1';
CREATE DATABASE IF NOT EXISTS guideme; USE guideme; DROP TABLE IF EXISTS `Emplo_Permi`; DROP TABLE IF EXISTS `service_message`; DROP TABLE IF EXISTS `favorite_exper`; DROP TABLE IF EXISTS `Exper_Report`; DROP TABLE IF EXISTS `Exper_Rate`; DROP TABLE IF EXISTS `Exper_Application`; DROP TABLE IF EXISTS `Exper_Order`; DR...
--create database RentACar --go --use RentACar --go --create table Clients --( --Id int identity, --FirstName nvarchar(30) not null, --LastName nvarchar(30) not null, --Gender char(1), --BirthDate datetime, --CreditCard nvarchar(30) not null, --CardValidity datetime, --Email nvarchar(50), --constraint pk_IdentfClients...
--Exo6: Dans la table languages, afficher toutes les lignes qui ne sont pas du PHP. SELECT * FROM `languages` WHERE `language` <> 'PHP'; -- <> opérateur qui permet d'exclure de la recherche. -- il a la même fonction que !=
* File RESEeqns.inc to the addon REShareE. * Equation QRESHAREE is with inspiration from equation QEEQ: QRESHAREE(CCCRESHAREE).. SUM(C$CCCRESHAREEC(CCCRESHAREE,C), SUM(IR$CCCRRR(C,IR), SUM((IS3,T), IHOURSINST(IS3,T)* (SUM(IAGK_Y(IA,IGE)$(RRRAAA(IR,IA) AND IGNOTETOH(IGE) AND GREE(IGE)), VGE_T(I...
SELECT PAGE_ID, PAGE_NAME FROM AUTHORITY_OBJECT_MST /* ***【保理仕様追加・変更対応】wanghaiming 2015/01/04 add start*** */ /*BEGIN*/ WHERE /*IF (sysDivision != null)*/ SYS_DIVISION IN (/*$sysDivision*/) /*END*/ /*END*/ /* ***【保理仕様追加・変更対応】wanghaiming 2015/01/04 add end*** */ GROUP BY PAGE_ID,PAGE_NAME ORDER BY PAG...
CREATE KEYSPACE IF NOT EXISTS lcmap WITH REPLICATION = { 'class' : 'SimpleStrategy', 'replication_factor' : 1}; -- Tiles for CONUS CREATE TABLE IF NOT EXISTS lcmap.conus ( x int, y int, ubid text, acquired timestamp, data blob, source text, PRIMARY KEY ((x, y, ubid), acquired) ) WITH COMPRE...
insert into book values (2,"Harper","Lee","8","To Kill a MockingBird");
--DROP TABLE employees; CREATE TABLE employees ( id SERIAL PRIMARY KEY, first_name character varying(60), last_name character varying(80), employee_id character varying(15), salary numeric(15,2), title character varying(80), status character varying(10) ); -- Short Data INSERT INTO employe...
-- phpMyAdmin SQL Dump -- version 3.2.4 -- http://www.phpmyadmin.net -- -- Servidor: localhost -- Tiempo de generación: 23-05-2019 a las 20:31:13 -- Versión del servidor: 5.1.41 -- Versión de PHP: 5.3.1 SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 S...
-- phpMyAdmin SQL Dump -- version 4.9.0.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Oct 27, 2019 at 12:16 PM -- Server version: 10.4.6-MariaDB -- PHP Version: 7.3.9 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OL...
-- Adminer 4.3.1 MySQL dump SET NAMES utf8; SET time_zone = '+00:00'; SET foreign_key_checks = 0; SET sql_mode = 'NO_AUTO_VALUE_ON_ZERO'; CREATE TABLE `anggota` ( `nim` varchar(15) NOT NULL, `nama` varchar(50) NOT NULL, `jurusan` varchar(50) NOT NULL, PRIMARY KEY (`nim`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1...
SELECT host_name, neighbourhood, room_type, max(price) price, minimum_nights, number_of_reviews, availability_365 FROM listings
-- -- Set server timezone -- --i.e. SET TIME ZONE 'US/Central'; -- SET TIME ZONE LOCAL; -- -- Common Sequence -- CREATE SEQUENCE common_seq START WITH 1000 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 5; CREATE SEQUENCE guide_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE...
INSERT INTO reviews (movieid,userid,"comment",rating,upvote,downvote,date_submitted) VALUES (1,1,'It was an excelent movie',5,0,0,'2020-07-25 22:50:27.711602-07') ,(1,2,'Nice work.Can anybody recommend me other movies like this?',3,0,0,'2020-07-25 22:50:27.711602-07') ,(1,3,'Not my favorite',2,0,0,'2020-07-25 22:50:27...
SELECT index.商品id,index.商品名,arrived_goods.入荷日,delivery.出荷日 FROM index JOIN arrived_goods ON index.商品id=arrived_goods.商品id RIGHT JOIN delivery ON index.商品id=delivery.商品id ;
-- phpMyAdmin SQL Dump -- version 4.8.5 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Waktu pembuatan: 02 Des 2019 pada 11.23 -- Versi server: 10.1.38-MariaDB -- Versi PHP: 7.3.2 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARA...
CREATE TABLE R ( A int, B int ) FROM FILE 'test/r.dat' USING CSV; CREATE TABLE S ( B int, C int ) FROM FILE 'test/s.dat' USING CSV; SELECT R.A, S.C FROM R, S;
CREATE TABLE t_permission ( id BIGINT NOT NULL, name VARCHAR(128) NOT NULL, description VARCHAR(512) NOT NULL, PRIMARY KEY (id) ); ALTER TABLE t_permission ADD CONSTRAINT uk_permission_01 UNIQUE (NAME);
create table C_User ( uemail varchar(50) primary key, username varchar(50) not null, employment varchar(30) not null, /*Student, Intern, Employed*/ past_qualification varchar(100) not null, institution varchar(30) not null, img_path varchar(50) not null, contact_no int not null ) create t...
-- this is Connie's SQL for bycatch, sent via email 19 Sep 2013 SELECT Year([TrapVisit]![visitTime]) AS [Year] , Month([TrapVisit]![visitTime]) AS [Month] , Site.siteName , DateValue(TrapVisit!visitTime) AS [Date] , SubSite.subSiteName AS Subsite , luTaxon.commonName AS Taxon , Sum(CatchRaw.n)...
SELECT * FROM savings WHERE user_id = $1;
INSERT INTO CUSTOMER VALUES(1,'Jan','Jansen'); INSERT INTO CUSTOMER VALUES(2,'Klaas','de Tester');
INSERT INTO product_image VALUES(1001,'product_image/earring/1001_1.jpg','product_image/earring/1001_2.jpg','product_image/earring/1001_3.jpg'); INSERT INTO product_image VALUES(1002,'product_image/earring/1002_1.jpg','product_image/earring/1002_2.jpg','product_image/earring/1002_3.jpg'); INSERT INTO product_im...
-- unique_invoice_countries.sql: Provide a query showing a unique/distinct list of billing countries from the Invoice table. SELECT distinct BillingCountry FROM Invoice; -- Results: -- BillingCountry -- ============================ -- "Germany" -- "Norway" -- "Belgium" -- "Canada" -- "USA" -- "France" -...
'ConsoleAlerts.inc ' ' Index to functions ' funConsoleMsgWithWait(strText) - print to console and wait for key to be pressed ' funGraphicAlert(strText, OPT lngSecondsWait) - graphic window with timed wait ' funGraphicAlertWithWait(strText) - graphic window wait till user exits ' include the speech API library #INCLUD...
transaction_id_from_page = 'input' or '%' from_date = 'input' or '%' to_date = 'input' or '%' group_code_from_page = 'input' or '%' SELECT * FROM GroupTourOrder WHERE transaction_id in (SELECT id_table.transaction_id FROM (SELECT t.transaction_id, g.group_code, ...
alter table bonuses add constraint bonuses_required_level_fkey foreign key (required_level) references levels (level);
CREATE TABLE IF NOT EXISTS batch_flavors ( id bigint(20) unsigned NOT NULL AUTO_INCREMENT, percent_m mediumint(6) unsigned DEFAULT NULL, vg tinyint(1) unsigned DEFAULT 0, flavor_id bigint(20) unsigned DEFAULT NULL, batch_id bigint(20) unsigned DEFAULT NULL, PRIMARY KEY (id), INDEX idx_batch_...
-- -- PostgreSQL database dump -- -- Dumped from database version 9.5.19 -- Dumped by pg_dump version 9.5.19 SET statement_timeout = 0; SET lock_timeout = 0; SET client_encoding = 'UTF8'; SET standard_conforming_strings = on; SELECT pg_catalog.set_config('search_path', '', false); SET check_function_bodies = false; S...
ALTER TABLE dbo.InterReport ADD CONSTRAINT ck_No_Special_Characters2 CHECK (CommentBox NOT LIKE '%[^A-Z0-9]%')