본문 바로가기

전체 글372

트레인 피버 초보 가이드(A Beginner's Guide to Train Fever) (동영상보기)1. Starting a new game When starting your first game, pick a small world size. Trust me, it's still huge. As a beginner, you don't need a medium or large map. The terrain you pick should be flat or medium, not hilly. Then, just click Start. Don't worry if nothing seems to happen for a little while, it takes time to load the game world! When the game world loads, click the pause button (in.. 2014. 9. 6.
Teradata - QUALIFY ROW_NUMBER() SQL 을 작성하다보면 최근값을 가져오기 위해 SELECT * FROM TAB1 WHERE SEQNO = (SELECT MAX(SEQNO) FROM TAB2 WHERE T1.SEQNO = T2.SEQNO); 형태로 가져올 때가 있다. 이 때 QUALIFY ROW_NUMBER()을 유용하게 사용할 수 있다. 예시) SELECT PID, ORDDD, SEQ, COL1 FROM TAB1 QUALIFY ROW_NUMBER() OVER(PARTITION BY PID, ORDDD ORDER BY SEQ DESC ) = 1; 설명: PID, ORDDD 별로 SEQ 를 정렬하여 1개 값을 가져 오기 2014. 9. 2.
Teradata - Substring 과 Substr 비교 기본적으로 Teradata SQL Assistant 를 사용할 때는 Teradata 를 통해 접속을 한다. 하지만 일반 어플리케이션에서는 ODBC를 통해서 접속하거나 JDBC를 통해서 접속을 한다. 이 때 사용할수 있는 함수나 기능적으로 차이가 날수 있다. 그예로 substring 과 substr을 살펴보면SELECT SUBSTRING ('1234567890' FROM 1 FOR 5);> 12345 SUBSTRING(string FROM ~ FOR) 는 ANSI 표준으로 Teradata 나 ODBC 다 가능하다.SELECT SUBSTR('1234567890' ,1,5); > 12345 위의 경우도 둘다 가능하다. 하지만 아래의 경우에 Teradata 를 사용하는 경우 오류가 발생한다.SELECT SUBS.. 2014. 8. 28.
Teradata - Interval 과 Add_Months 비교 전월 같은 월 계산시에 오류가 발생할 수 있는 경우가 있다. 예를 들어, 7월은 31일까지 있지만 6월은 30일까지 밖에 없다. 또는 2월이 마지막 일이 28일 혹은 29일이다. 이런 경우 interval 을 사용하면 오류가 발생할 수 있다. SEL DATE '2014-07-31' - INTERVAL '1' MONTH; > SELECT Failed. [2665] Invalid DATE. SEL ADD_MONTHS(CAST('2014-07-31' AS DATE ),-1); > 2014-06-30 2014. 8. 28.
텔넷 접속 수 변경 윈도우서버에서 기본적으로 텔넷으로 접속할수 있는 수가 2로 제한되어 있다. 이것을 변경하기 위해서 다음과 같이 한다. C:\Users\Administrator>tlntadmn config 다음은 localhost의 설정입니다. 에 매핑된 키 : YES 유휴 세션 시간 제한 : 1 시간 최대 연결 : 5 텔넷 포트 : 23 실패한 최대 로그인 시도 횟수 : 3 연결 해제 시 작업 마침 : YES 작업 모드 : Console 인증 메커니즘 : NTLM, Password 기본 도메인 : WINSVR 상태 : 실행 중 C:\Users\Administrator>tlntadmn /? 사용법: tlntadmn [컴퓨터 이름] [일반 옵션] start | stop | pause | continue | -s | -k |.. 2014. 6. 3.
ORACLE TO TERADATA MIGRATION GUIDELINES Primary Index creation rules: OracleTeradataPRIMARY KEYMake UPI and change those columns to NOT NULL.No PRIMARY KEY but one or more UNIQUE indexesCreate UPI with unique index with the least number of columns. Maintain NULL/NOT NULL constraint as is.No PRIMARY KEY, no Unique indexes, but only non-unique indexesPick a good candidate for PI and create NUPI. Maintain NULL/NOT NULL constraint as is.N.. 2014. 4. 28.
Performance tuning #1 출처: http://www.teradatatips.com/2010/07/performance-tuning-1.html I have taken a long break from updating this blog. To appease my mind, I am going to update a series of posts for Performance tuning, as it is going on in my project work. When it comes to performance tuning, we cannot stick to a certain set of rules. It varies based on the data you are dealing with. Although, we can create a base.. 2014. 4. 24.
Teradata Performance Tuning - Basic Tips Performance tuning thumb rules. Here are very basic steps which are used to PT any given query in given environment . As a pre-requiste , make sure - user has proper select rights and actual profile settings - Enough space available to run and test the queries 1. Run explain plan (pressing F6 or "EXPLAIN sel * …",) Then see for potential information like - No or low confidence - Product joins co.. 2014. 4. 24.
Teradata SQL Query Optimization Or Performance Tuning SQL and Indexes : 1) Primary indexes: Use primary indexes for joins whenever possible, and specify in the where clause all the columns for the primary indexes. 2) Secondary indexes (10% rule rumor): The optimizer does not actually use a 10% rule to determine if a secondary index will be used. But, this is a good estimation: If less than 10% of a table will be accessed if the secondary index is u.. 2014. 4. 24.
위드맘 출시기념 퀴즈 이벤트 2014. 4. 14.
[SAP] Lumira Standard SAP Lumira Standard 버전에 대해서 살펴 보겠다. 기본 화면은 다음과 같다. Acquire Data 를 눌러 csv 나 엑셀파일을 읽어 들일수 있다. 예전 버전에서는 DB연결이나 유니버스 연결이 되었는데 아쉬움이 남는다. 샘플 데이터 소스를 통해 분석을 내용을 살펴보자. 문서형태의 데이터와 데이터셋 형태로 된 데이터가 샘플로 제공된다. 1.5 버전에서 Lumira 클라우드를 통해 연결이 가능해졌다. 1GB까지 지원하니 사용해볼만 하다. 웹에서 접근할 수 있는 클라우드와 데이터가 공유되지 않으니 유의해야 한다. 기본 제공해주는 샘플을 통해 내용을 살펴보자. 데이터를 분석하기 위해 크게 4개의 화면을 제공한다. Prepare 는 데이터를 확인하고 Calculation을 통해 매져와 디멘져를 추.. 2014. 3. 26.
Sublime에서 한글 깨짐 UTF8 소스콛가 utf8로 되어 있는 경우가 많이 있는데 이를 sublime에서 열 경우 깨져보인다. Ctrl + Shift + P 눌러서 install package 로 들어가서 ConvertToUTF8 패키지를 설치한다. 2013. 11. 7.