select xso.packing_no ,max(xso.seller_id) from dbo.table as xso with(nolock) where xso.packing_no in ( select distinct [value] from string_split(@packing_no, ',') ) group by xso.packing_no -- 영문순으로 정렬 order by case when max(xso.seller_id) like '[a-za-z]%' then 0 else 1 end , max(xso.seller_id)
세로행 -> 가로행으로 변경 CREATE TABLE Sales ( Salesperson VARCHAR(50), Region VARCHAR(50), Sales INT ); INSERT INTO Sales (Salesperson, Region, Sales) VALUES ('John', 'North', 100), ('John', 'South', 150), ('John', 'East', 75), ('Mary', 'North', 200), ('Mary', 'South', 50), ('Mary', 'East', 125); SELECT Salesperson, [North], [South], [East] FROM ( SELECT Salesperson, Region, Sales FROM Sales ) AS SourceT..
This function searches for one character expression inside a second character expression, returning the starting position of the first expression if found. 특정 문자열의 시작 위치 값을 반환합니다. DECLARE @document VARCHAR(64); SELECT @document = 'Reflectors are vital safety' + ' components of your bicycle.'; SELECT CHARINDEX('bicycle', @document); GO
USE AdventureWorks2012; GO SELECT ProductNumber, Category = CASE ProductLine WHEN 'R' THEN 'Road' WHEN 'M' THEN 'Mountain' WHEN 'T' THEN 'Touring' WHEN 'S' THEN 'Other sale items' ELSE 'Not for sale' END, Name FROM Production.Product ORDER BY ProductNumber; GO USE AdventureWorks2012; GO SELECT ProductNumber, Name, "Price Range" = CASE WHEN ListPrice = 0 THEN 'Mfg item - not for resale' WHEN List..
create sequence dbo.seq_name as [int] start with 1 increment by 1 maxvalue 999999 declare @grn_sequence_no int = next value for dbo.seq_name select format(getdate(), 'yyyyMMdd') + '-' + format(@grn_sequence_no, 'd6') 참조 자료] 날짜 및 시간 스타일 https://docs.microsoft.com/ko-kr/sql/t-sql/functions/cast-and-convert-transact-sql?view=sql-server-2017 포멧(Format) https://docs.microsoft.com/ko-kr/sql/t-sql/func..
- Total
- Today
- Yesterday
- 스프링 시큐리티(spring security)
- java.sql
- jstl(java standard tag library)-core
- await
- java web-mvc
- 진수 변환
- java 키워드 정리
- MainActor
- error-java
- 메이븐(maven)
- React
- 상품 등록
- System.Diagnostics
- In App Purchase
- 특정 문자를 기준으로 자르기
- 제품 등록
- 스프링 프레임워크(spring framework)
- nl2br
- 인텔리제이(intellij)
- jstl(java standard tag library)
- REST API
- java-개발 환경 설정하기
- system.io
- 표현 언어(expression language)
- 문자 자르기
- 스프링 시큐리티(spring security)-http basic 인증
- .submit()
- 스프링 프레임워크(spring framewordk)
- 람다식(lambda expression)
- jsp 오픈 소스
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | |||
5 | 6 | 7 | 8 | 9 | 10 | 11 |
12 | 13 | 14 | 15 | 16 | 17 | 18 |
19 | 20 | 21 | 22 | 23 | 24 | 25 |
26 | 27 | 28 | 29 | 30 | 31 |